Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

New-ADComputer : A required attribute is missing - Issue using "-path"

I am trying to make a simple script to create a new computer object in AD.  I took out all variables and put the real data in and i get an error.  Below is the line of code I am trying to run.  Under...

View Article


How do I use Get-Aduser's Filter to exclude a large number of Import-CSV user...

Hi,A few questions here:1. How do I build a dynamic list of users to use in the Get-Aduser -Filter from the $ExcludedUsers = Import-Csv $Path? I'd like to 'exclude' these users from processingduring...

View Article


Set-ADUser : Cannot validate argument on parameter 'Replace'. The argument is...

I have a script and im getting the error above.$path = "c:\temp\******.csv" $csv = Import-Csv $path Import-Module ActiveDirectory foreach($line in $csv){ $replace = @{} If ($line.internTelefoonnummer)...

View Article

PowerShell program installer (need help new to powershell)

this is my older code but what i'm trying to do is run this from a non-domain computer to a domain sever thats sharing the file now matter what way i do it i can't get them running off the server but...

View Article

Can some one help me

Hi All,am running a powershell command to get the disk space for remote computer in other subnet an which is a trusted domain system.while running the power shell command getting error get-wmiobject...

View Article


typewriter text in powershell?

I've just started out with powershell, is there a way to make text have a typewriter effect, as if someone is writing it?I understand that Write-Host ouputs the text, and I can use Start-Sleep for...

View Article

accept default "y"

stop the prompt from asking yes or no when using the PS below?Import-CSV .\file.csv | %{ Disable-UMMailbox -Identity $_.Identity -KeepProperties:$False}

View Article

How to determine location of a VHD image using using its mounted drive letter?

Hi,I have a VHD boot based on Window 8.1 Enterprise, starting my laptop in a live manner from a USB drive. The problem is to find out a way to determine theexact location of this VHD image; that is,...

View Article


Windows powershell script to identify members, removed from active directory...

hi,I deleted some users from an active directory group before 4  5 days, by mistake.Is there any powershell script that can return past members of an active directory group ?any clue ?thanks in advance.

View Article


Powershell hangs if Get-VM is used

Fairly straight forward. Powershell hangs (5days +)Server is 6.2.9200 "Hyper-V Server 2012"Equivalent setup to several other servers - all without issueC:\temp>powershell Windows PowerShell...

View Article

getting information from another computer and putting it in a dir on server...

I am trying to get this command to workgsv -ComputerName vm-de1f-fdc4 | out-file d:\p2p/vm-de1f-fdc4.txtI get get-services : cannot open services control manager on computer vm-de1f-fdc4 this operation...

View Article

Powershell to get-acls get-acl id from database table and insert ID on...

Hello all,Here iam again. Would like some help on How can i implement the following:I have a few shares on the network. I ll get all the folder and file permissions with get-acl and get that info to a...

View Article

get-acl : Cannot find path '\\fileshare\test\Share\' because it does not exist

Hello all, Iam getting the following error when i use $acc=(get-acl $file).Access$file is a obtained from a database with the following query:foreach ($file in Invoke-Sqlcmd -Query "select...

View Article


How to know if $variable is User or group

Hello all,I could use some help finding the best way to know if some "name" saved in a some variable its a AD User or a AD group.Any ideas on how to find it?Regards,Arestas

View Article

issue Invoke-Webrequest with a proxy server

the following commands work only after a connection with a webbrowser. It does also not work with "Get-Credentials" for the proxycredentials. However, if a one-time connection to a browser have been...

View Article


Windows 10 PowerShel/Internet Explorer Automation Problem

Hello,I have a PowerShell script that I use to automate an Internet Explorer window. Basically the code does this:$ie = New-Object -com...

View Article

Get Partner agents with full access and limited access users in office365...

Hi,how to retrieve the "Partner agents with full access" and "Partner agents with limited access" users in office365 using powershell?ThanksVenkat

View Article


how to retrieve the "Partner agents with full access" and "Partner agents...

how to retrieve the "Partner agents with full access" and "Partner agents with limited access" users in office365 using powershell?thanksvenkat

View Article

Powershell script to check single regestry value in every pc on Subnet or OU

I need to produce a list of all PC in a given subnet where registry value of a pc isnot equal to  abc.eu.company.comthe command below can check registry on a single pc.Import-Module PSRemoteRegistry...

View Article

Warning: 'EnableWriteOrderPreservationAcrossDisks' is not required for...

When we run set-vmreplication -vmname **** -EnableWriteOrderPreservationAcrossDisks 1we get WARNING: 'EnableWriteOrderPreservationAcrossDisks' is not required for 'Set-VMReplication'.I can see other...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>