Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: Format Partition

Thanks for your valuable suggestions

View Article


Reply To: Powershell Ruan As Administrator

This line should give you what you need: Get-WmiObject -Class Win32_ComputerSystem | select * | Out-File ($env:COMPUTERNAME + ".txt") To make this runs as administrator, on this or any machine,...

View Article


Reply To: Powershell Ruan As Administrator

Thanks! your script starts to be too complicated for my skills (beginning now …). what is proposed @Alexander Johansson and built by me by sending email, works if only I could overcome the problem of...

View Article

Reply To: Need to check a Socket but with a source IP

This should do the job: # Running this script on Computer A $Account = "domain\user-with-eoungh-permissions-on-ComputerB" $ComputerB = "ComputerB_Name" # Source computer where we initiate the ip/port...

View Article

Reply To: Hyper-V cmdlets in Windows Server 2012 R2

Thanks Rob, that worked.

View Article


Please Help!!!! We Need a Windows Powershell Resource at Secausus, NJ

Hi all, We have a very urgent Job opening with our client, We tried to search Powershell Consultants on Job Portals, But unable to Find a Good Profile. Someone suggested me to visit here with my...

View Article

Image may be NSFW.
Clik here to view.

Reply To: Powershell Ruan As Administrator

Hello! I prefer to answer here so that everyone can see the answers Try to open the powershell console and use the "Set-ExecutionPolicy" cmdlet inside of the console instead of inside the script file,...

View Article

Reply To: Powershell Ruan As Administrator

So it seems to work, but my goal is to put everything in a script, complementing what I had suggested in your first post . Execution requires a response (Y / N). I tried ECHO Y | Set-ExecutionPolicy...

View Article


Reply To: Powershell Ruan As Administrator

Hi again! If you change the execution policy from the console the setting will be permanent. /Alexander

View Article


Reply To: Powershell Ruan As Administrator

If you want Set-ExecutionPolicy to work without prompting, add the -Force switch as well. (However, as has been noted, you can't rely on doing this from inside a script, since the execution policy...

View Article

Reply To: Powershell Ruan As Administrator

Yes I'm sorry that I wasn't so straight forward in my answer, you can change the execution policy from within a script but not if the execution policy is set to restricted. /Alexander

View Article

Reply To: Powershell Ruan As Administrator

unfortunately the problem is that I should perform the execution of the policy manually on many PCs, located in different places. for this I tried to automate the process ….. also to perform...

View Article

Reply To: Powershell Ruan As Administrator

If you're in an Active Directory environment, you can use Group Policy to change PowerShell's execution policy. Also, individual users can set it for themselves without admin rights; you just need to...

View Article


Image may be NSFW.
Clik here to view.

Reply To: Powershell Ruan As Administrator

If you are in an Active Directory environment you should set the exectuion policy by a Group Policy, the policy is located as seen in the picture below. /Alexander

View Article

Reply To: Powershell Ruan As Administrator

Are all in AD. Only one group of users is in workgroup. On these I get the following error (just because I not run the command manually as administrator): Set-ExecutionPolicy: Access is denied to the...

View Article


Reply To: Powershell Ruan As Administrator

You can use this script to set Execution Policy on all the computers in the $Targets list to "unrestricted" $DomainAccount = "domain\user-with-enough-permissions-for-task" $Targets =...

View Article

Reply To: Powershell Ruan As Administrator

I'll try. It seems a little complicated for my skills …… Thanks

View Article


Sharepoint 2010 Remote Admin

This may be a sharepoint problem, but it seems like a powershell issue so I'm starting here. I want to use powershell to administer a remote sharepoint 2010 server running on Windows Server 2008R2...

View Article

European Summit sales are live

Hi guys, I know that it was suggested that the summit would go on sale at midnight eastern US time on the 15th, but they are on sale now. I've been able to register and pay. Good luck! Kieran.

View Article

Powershell + HTML

I am making a powershell report that generates a table presently the top part of the table is blue and font color is black , the body of the table is "whitesmoke" $color = 'Blue' $tableColor =...

View Article
Browsing all 13067 articles
Browse latest View live