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.
66
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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, ...
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 ...
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 ...
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 ...
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 ...
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-...
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"...
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 ...