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.
22
questions with no upvoted or accepted answers
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 ...
3
votes
1
answer
1k
views
How to get list of CLSIDs along with their associated COM Object names?
Searching for the ways to generate or get the list of CLSIDs, I found this link, that actually does it.
But it's rather incomplete in my opinion, the complete list would include CLSIDs with their ...
3
votes
1
answer
9k
views
Powershell to set default browser
I created a process using PowerShell to install Chrome. What I am looking to do now is to have PowerShell change the registry for the computer and change the default browser to Chrome.
I would ...
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 ...
3
votes
1
answer
67
views
Installing Windows patch from command line gives BSOD but fine if double clicked?
I'm trying to programatically install some Windows updates that were manually downloaded. If I double click the .exe and run through the install manually - everything works fine. If I, however, use ...
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 ...
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
0
answers
139
views
PowerShell always launches as administrator
I have inherited a legacy Citrix 6.5 system running on Windows Server 2008. Yes I know this stack isn't for server questions but my feeling is that this workstation question as the server is used for ...
1
vote
0
answers
59
views
Moving an event log source is not having an effect
I'm having an issue that to be clear I'll describe in steps:
I created an event source called Foo in the event log called Application using the following powershell command:
New-EventLog -source Foo -...
1
vote
0
answers
346
views
Windows Server 2012 prevent remote desktop account logging out after inactivity
I've got a process that is running from Powershell on an Windows Server 2012 instance in AWS, however it is currently running under a user's account. The issue is that once the remote desktop ...
0
votes
1
answer
116
views
Exception calling "CopyFolder" with "4" argument(s): "The 'destUrl' argument is invalid."
I'm trying to copy local drive folder to targeted folder in online one drive but getting above error.
Below is the code tried: -
#Load SharePoint CSOM Assemblies
Add-Type -Path "C:\Program Files\...
0
votes
1
answer
204
views
Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error message
I am running below script on my system to perform all sccm client actions trigger and getting below error.
Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error ...
0
votes
1
answer
30
views
Values from CSV instead of manual values
Question:
This Powershell code have manual values defined "Value 1 & value 2" , want these two to be from CSV file.
#Value 1
$blockedConnector1 = [pscustomobject]@{
id = ...
0
votes
0
answers
2k
views
uninstalling the chrome using powershell script
I am trying to uninstall google chrome using powershell script but it shows me a popup to choose uninstall/cancel. How can i supress this by choosing uninstall button?
Set-Location 'path\to\my\chrome' ...
0
votes
1
answer
1k
views
Pick up 2 file extensions in a directory using FileSystemWatcher
I am looking to pick up only pdf and rtf files but I get a result of "true" when echoing the variable
$watcher = New-Object System.IO.FileSystemWatcher
Write-Host "First line of the script, getting ...