Questions tagged [powershell-v3.0]

For issues relating to Windows PowerShell, version 3.0.

Windows PowerShell Microsoft's task automation platform for Windows, and includes a command-line shell and scripting language. PowerShell was designed especially for system administrators.

Powershell 3.0 comes with Windows 8 and Windows 2012 as a built in package.

73 questions
0
votes
1 answer

Powershell command for extracting all users from a domain

Get-ADUser -SearchBase "dc=contoso,dc=local" -filter * -properties Name, Surname, samAccountName, Enabled, PasswordNeverExpires, PasswordExpired, PasswordLastSet, MemberOf | Select Name, Surname, SamAccountName, Enabled, PasswordExpired, MemberOf |…
0
votes
1 answer

VBScript- Input DisplayName Output AD Username

If I had a txt file with a bunch of names: Dan Smith Jim Bob Ryan Jones etc,etc using a VBscript could I convert the displaynames to AD Usernames? If Powershell is only options, could you please let me know how I could format my text file for it to…
Benjamin Jones
  • 326
  • 1
  • 9
  • 23
0
votes
1 answer

PowerShell - Server 2012 - Issue with Custom Modules Loading

I'm having a frustrating issue with our deployment script that is currently working on Server 2008 R2 and I can't get to start on Server 2012 due to issues with PS not recognizing our custom modules we copy over and import. Error: Import-Module :…
0
votes
1 answer

Invoke-GPUpdate fails even with firewall disabled

PS C:\Users\Administrator> Invoke-GPUpdate -Computer rim-23 Invoke-GPUpdate : Computer "rim-23" is not responding. The target computer is either turned off or Remote Scheduled Tasks Management Firewall rules are disabled. Parameter name:…
Jason
  • 3,931
  • 19
  • 66
  • 107
0
votes
1 answer

Execute a git pull on a remote windows server

I'm trying to remotely execute a git pull on a Windows server via New-PSSession powershell script. Most git commands like status and help, but when I execute a pull command it just hangs and I confirm that the process is just waiting on the remote…
0
votes
1 answer

The term 'Get-ClusterResource' is not recognized as the name of a cmdlet, function, script file, or operable program

I have a powershell script that I'm attempting to execute over SSH. The command works perfectly when I run it from the server's powershell commandline. Here is my Powershell script: ImportSystemModules $vms = Get-ClusterResource |…
CodeLikeBeaker
  • 101
  • 1
  • 4
0
votes
1 answer

Hyper-V replica - PowerShell - replica merge (detect / invoke)

I need a PowerShell command which can detect replica merge process on the specific VM. And to be sure... There is no way how to invoke replica merge process using a PowerShell command.. Am I right? Thanks in advance...
devlin
  • 145
  • 2
  • 3
  • 14
0
votes
1 answer

Trying to retrieve an error from addding a computer to AD using Powershell

I'm trying to figure out how to retrieve an error from adding a already there computer in Active Directory. Here's the script that I'm using to add my machine in my domain. Add-Computer -DomainName "myDomain" -OUPath "ou=Postes de…
0
votes
0 answers

PowerShell doesn't like the -AssignDriveLetter option of the New-Partition cmdlet

I'm trying to create a partition on the USB flash drive using the New-Partition cmdlet. But when I use the -AssignDriveLetter option I get "New-Partition : Invalid Parameter" even though this option exists in the documentation: PS…
Ark-kun
  • 151
  • 1
  • 6
0
votes
1 answer

Newbie. ForEach, IF, Else

Please educate me. I am trying to test if a file exists on a group of computers' desktop. Some computers are Windows 7 and some are Windows XP. When I run the code, It doesn't test the path on every computer and returns every computer as "has URL"…
Jake
  • 2,268
  • 5
  • 30
  • 40
0
votes
1 answer

How to Move Multiple VM's to Different datastore

I have tried and search multiple way to migrate VM's to different data store $existingds = Get-Content dummy path $newds = Get-Content dummypath Get-Datastore $existingds | Get-VM | Move-VM -DiskStorageFormat Thick -Datastore $newds –RunAsync But…
Mohit
  • 1
-1
votes
2 answers

Powershell script Needd to set the state of Allow Remote Shell Access

I am looking for a script which will set the value to "Enable/Not Configured/Disable" of Allow Remote Shell Access in Gpedit via Powershell script. Below value state value should get changed to Disable via PS script I know I can use get-gpo to…
-7
votes
1 answer

SysWOW64 access denied (Windows Server 2012 Standard)

I am trying to call: [System.IO.File]::Delete($folder) from the Powershell ISE (not ISEx86). I am logged in as Domain User that is an Administrator on this machine to which I connect using RDP. I have taken ownership over SysWOW64 folder and…
1 2 3 4
5