Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

Email a list of AD Users that have not logon for X amount of days/months

Hi AllI was wondering if some one with PowerShell knowledge to help me to create a script that will check AD for Users that have not logon on for X amount of days/months and will send an email...

View Article


HTML Help

I have created the following Powershell script to email me a list of devices on my network that are pending restarts after patching.Any of you clever folk able to show me how to embed it into the body...

View Article


Possible to save password in script?

I've made this script to reboot any workstations listed in the txt file and it seems to work great however the only catch is that it prompts for the admin password. My goal it to schedule this to run...

View Article

Powershell script to export AD users whose user properties are empty

Hi All,I need a powershell script to export AD users whose user properties (Like Telephone, manager, title, email ID) are blank. So that i can update it later.Also provide me the script to update the...

View Article

How to allow a user to run a script required admin right?

Hi all,i am beginner in windows program. My users have no admin rights. What i am looking for is to provide them the ability to reset their bitlocker password of their data disk (not c: volume). They...

View Article


Collecting Serial Numbers Of Dell Port Replicators In SCCM Or Powershell

Is there anyway to find the serial number of a dell port replicator that a laptop is docked into using either sccm or powershell, we have hundreds of these across the country and want a way to check...

View Article

Mass Change for AD Users

I need to change several ad attributes for each user in AD to match our new OU naming convention. I'm having a tough time hammering out a ps script to do that.I've got a list of users for each ou. so I...

View Article

Image may be NSFW.
Clik here to view.

New-ADUser PowerShell Parameter

I am scripting new user setups in powershell and have run into a snag.We display names as lastname, firstname. I can set this with the displayname parameter and variables. I need it to display in the...

View Article


PowerShell - Query AD Homedirectory not using SamAccountName

Hello all,So basically I am trying to find all users within Active Directory that are not using the HomeDirectory path w/ SAMAccountName. I have been tasked with migrating user accounts to a new...

View Article


Powershell Robocopy with spaces

robocopy "\\$computer\C$\users\$user\OneDrive – Company Name Here " F:\Archive\$user\OneDrive" /COPY:DAT /NP /B /MIR /R:0 /W:0 /log+:F:\Archive\$user\log.txtI have written a backup script for user...

View Article

:GOTO in powershell

Spiceheads!!!I have been working on my powershell skills recently, and it has been really awesome, however, I am still very green to powershell scripting and have a lot to learn, so if this is a stupid...

View Article

Help with PS!

Okay, so I dont know almost anything about PS and was looking to see if someone can help me use this code i found, to simply output it to a .txt. Thats about it....

View Article

Active Directory PowerShell script

Hi, I'm am trying to create a script that will allow me to create a member in a specific group, along with a password, username, name ,a job title and description. How would I accomplish this...

View Article


Pull Files from Folders and Drop Higher in Hierarchy

Good Morning.I have a bunch of files that are nested about two levels deep in folders.I have been asked to move them up a level so there isn't so much clicking going on.I have been looking for...

View Article

Powershell script for Windows updates (security and critcical only)

Hi all,Im in the process of patching some of our Windows servers that are horribly behind shall we say with updates and all sit in a DMZ.I only need to patch these servers with security and critical...

View Article


Powershell output with initiating command to a text file for backups

Besides the obvious way of PowershellEcho"Get-OutlookAnywhere | FL"|OutFile-Appendsomething.txtGet-OutlookAnywhere|FL|OutFile-Appendsomething.txtIs there a way to output the command to the text file...

View Article

Powershell - Extract/Ignore portions of a path

Hi Powershellheads!I've got a little task I'm trying to achieve, basically I've got this script that loops through folders and zip up the contents within, spiffing!The problem I've got now is that the...

View Article


Program Conversion from .bat to .ps1

Over the years I have created a few program to run through the command prompt. I've also started to realize that PowerShell is much more powerful. I was wondering if there was any way to convert the...

View Article

Making new groups from CSV, comparing to current groups to make new only.

First, thank you for the help I am working on this and have been for ~2 days. I am at the point where I am banging my head into a wall.What I am trying to do is generate a list of my current AD groups,...

View Article

PS Script to show login scripts

Server 2003 AD.I need a PS script to shop what user has what login script assigned to their account. Get-ADUser -filter * -properties scriptpath, homedrive, homedirectory | ft Name, scriptpath,...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

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