Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Set-ADUser from pipe

Hi guys,I'm wanting to clear out any titles that staff have in AD so they are all blank.I'm testing the command with this first:Get-ADUser -Identity testuser -Properties Name, title | select name,...

View Article


Objects limits 1000 in AD

Hi all I have about 1500 objects. So when i run get-mailbox -resultsize unlimited it fails at 1000.I have found below on the internet, but not sure if this would fix my problem and if it does what are...

View Article


SQL bulk copy from csv file - Encoding

Hi ExpertsThis is the first time I am creating a PowerShell script and it is almost working. I just have some problems with the actual bulk import to SQL encoding from the text file since it replaces...

View Article

How to add a string value in registry that has double quotes " "

Hi folks. I've been able to successfully add reg string values by using the get-item -path and new-itemproperty commands in powershell for windows 2012 but am having difficulty adding a value for a reg...

View Article

AD Query Question

Hi guys, I'm a newbie to powershell so forgive my newbie question.  I am writing a powershell script to inventory all the servers on our network write that to excel and then use WMI to log into each...

View Article


unable to change local user password via ADSI WinNT

Hi friendsi am exercising ADSI WinNT to manage local user accounts on my test win8.1 station.i have a user named "mytestuser" & i want to change his password.if i don't mistake i am wrong in line 2...

View Article

Image may be NSFW.
Clik here to view.

Need help combining two scripts

I'm trying to combine two inventory scripts and have it create just one Excel worksheet with all the information on it and have the worksheet named whatever the computer name is.I've been wrestling...

View Article

Compare a Users group membership to a local server

I'm trying to find if a users AD group membership exists on a server.Does the AD Group XXXX exist in any of the local groups.Not sure if this is going to be a easy task or a hard task. Clear-Host# 1....

View Article


Powershell Directory list but exclude files.

Hi, I'm trying to pull a list of all the directories and sub directories on a file share down to 3 levels. It works well but the only issue is it includes files as well but I can't figure how to...

View Article


Credssp accross multiples domains

Hi Experts,please help with setup Credssp accross multiples domains.I need run remote powershell session from 1 domain to another and  my script has second hop or “multihop” problem.When I test Credssp...

View Article

Powershell returns Negative Infinity

Hi Experts,I am using a formula to calculate average RAM percentage utilization. I have this script running in my machine for several months. This is the first weird time that i got a negative infinity...

View Article

How To Automate File Hash Check With PowerShell

hash checking allows you to ensure that the files you copy are 100 percent the same. When copying hundreds or thousands of files, you can automate file hash check with PowerShell -- here's how.Read More

View Article

Configuration for removing older versions of a service

I am working on creating a DSC configuration for a cluster that runs a set of proprietary services that are installed via msi. I want to be able to ensure that any older versions of the service are...

View Article


Using Windows Screensaver as a Backdoor with PowerShell

While bypassing the lock screen is useful, the method mentioned there needs physical access to the target. This feature of Windows could be used for much more fun without physical access. The fact that...

View Article

Nested group function not returning nested AD group members past 1st and 2nd...

I have this function that is not returning nested group membership past the 1st and 2nd level. I have nested groups that are 3-4 levels deep for some users.Do you know if this is a limitation? Is there...

View Article


Start Dynamics NAV Development Client (C/SIDE) from PowerShell

Now when we’re at it .. It might be interesting to also start a development client from PowerShell.Read More

View Article

Clearing SharePoint Designer 2013 Cache with PowerShell

If you’ve worked long enough with SharePoint Designer (SPD) 2013, then you’re probably aware of the constant need to clear cache.read more

View Article


Reading and piping out result.

hi all,(DECLAIMER I only been playing with powershell for a week now.)I have hit a wall in trying to figure out why this is not working, any help is greatly appreciated.what I am trying to do is read a...

View Article

creating a numbered list for output of some commands

hellowhen we run this command:Get-WindowsFeature | where installed -match'true' | select name output is like this:telnet-clienttelnet-serverpowershellsearch-serviceetcvia what code we can cause the...

View Article

Get Unlinked GPOs from trusted domains

Hello,I have a list of 72 domains that I need to find which GPOs are unlinked in each of those domains. I have the below code but only returns the domain to which i'm logged...

View Article
Browsing all 6937 articles
Browse latest View live