Skip to main content

Questions tagged [powershell-3.0]

Microsoft’s command-line scripting language. V 3.0, which was introduced in Windows 8 and Server 2012, supports code autocompletion (IntelliSense). Remote sessions are more reliable, and there is a bigger selection of cmdlets and built-in functions.

1 vote
2 answers
1k views

Get-CimInstance not working when run from Scheduled Task

I have a Powershell script that exports a list of all the services on my local computer using the following command: Get-CimInstance win32_service | Export-Csv $PSScriptRoot\Local\services.csv It ...
mwolfe02's user avatar
  • 455
3 votes
1 answer
2k views

"Could not open a connection to your authentication agent."

Something has happened to my Windows Powershell, so whenever I open it there is a big long pause and then it says "Could not open a connection to your authentication agent." What is an authentication ...
Moss's user avatar
  • 689
2 votes
1 answer
41 views

Azure powershell issue to create office365 accounts, powershellinternalurl error

I have been using PowerShell to create Office365 accounts for about 5 months. We use Office365 to archive email. The script I was using was working flawlessly. However for over a week or so, the ...
Arif's user avatar
  • 21
0 votes
1 answer
1k views

Script to look for specific folder names, then copy contents to destination path

I'm looking for some help with finding a script, or getting a starting point, as i'm a bit new to scripting. Basically what i'm trying to achieve is the following. A specific folder name, lets call ...
Nick Nikitkin's user avatar
36 votes
5 answers
182k views

Using make from Windows PowerShell

Under Linux, sources of projects commonly come with Makefile's. Makefiles contain directives to build these projects using the command make. I am currently forced to use Windows, and so as to be able ...
Malte Skoruppa's user avatar
2 votes
1 answer
24k views

Create a new VPN connection via Powershell

I have to create an application with PowerShell that creates a new VPN connection (adapter) to a given host, with given settings (credentials, etc...). The computers will be running Windows 7. I ...
Ob1lan's user avatar
  • 1,906
2 votes
0 answers
1k views

Does powershell use CLR?

I know that powershell was built on top of .net. So does that mean it uses CLR? If yes, does that mean CLR works as an interpreter, converting directly from *.ps1 into machine code?
Foo's user avatar
  • 269
1 vote
2 answers
2k views

Select-Object For AD Groups Only

I'm trying to setup a script to find all permission information of file shares on our network. At the moment I have a Powershell script that does this, but it includes groups, users, SID account, ...
The Woo's user avatar
  • 477
5 votes
1 answer
18k views

Is it possible to install PowerShell 3 on a Windows Server 2003 or 2003 R2?

On a Windows Server 2003 rig (which already has .NET 4 but no 4.5 on it) that is to be expired before the end of the year, I'd like to run a few PowerShell 3 scripts on a scheduled base as the scripts ...
Jeroen Wiert Pluimers's user avatar
0 votes
4 answers
23k views

Simple batch file fails on Windows Server 2012

On a Windows 2012 Server, from a logged-in Administrator (local and domain), created a batch file "test.bat" by redirecting console input into a file: echo Hello When run from PowerShell cmd prompt ...
user340089's user avatar
0 votes
1 answer
2k views

PowerShell Get ACL For Folders In A Text File

I have a text file with the exact paths of the folders that I want to get permission information from, and I am trying to use PowerShell to get the information from each folder. I want to add the ...
The Woo's user avatar
  • 477
0 votes
1 answer
1k views

Powershell Get File Shares Into Array

I am trying to get a list of folders shared on a file server, and put them into an array. This is the code I have at the moment: $FileServer = "ServerName" [array]$FileServerShares = gwmi ...
The Woo's user avatar
  • 477
28 votes
13 answers
223k views

PowerShell Get List Of Folders Shared

I am trying to get a list of folders that are shared on a file share. At the moment I have two test folders: \\MYPC\Test1 \\MYPC\Test2 This is the code I have at the moment: $FileServer = Read-...
The Woo's user avatar
  • 477
0 votes
1 answer
715 views

Get-ChildItem Returns No Files Through Remoting but Works Correctly When Logged In Interactively on Remote System

I have just started working with the remoting features of PowerShell 3.0. My current problem is that I can log in to remote machine "secondmachine" and execute the command gci "\\thirdmachine\share"...
John Saunders's user avatar
4 votes
0 answers
4k views

Changing current culture

I need to change the current culture for a script and nothing I tried works. I've tried using the Set-Culture cmdlet. I've trued setting [System.Threading.Thread]::CurrentThread.CurrentCulture. Is ...
Paulo Morgado's user avatar

15 30 50 per page