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

Force a Remote User Logoff

So I'm using the powershell script below to remotely log off all computers at 3am every morning. In the servers.txt file I added each workstation on a separate line. foreach ($_ in get-content...

View Article


Review of Idera PowerShell Plus

Idera PowerShell Plus is a free helper app for PowerShell users that provides an IDE for building PowerShell scripts, a library of pre-loaded scripts, and tutorials, among other features. Petri IT...

View Article


Share permission on cifs Server

I want to be able to get the all the permission from Cifs server share add folders and sub folders.I believe I could use PowerShell to do this, also I want to place in spread sheet.Thanks

View Article

How do I...

I want query the logged in user and set a location based on the user. So far this is all I havePowershell$Name=(Get-wmiobject-classWIN32_Computersystem).UserNameThat gets the domain\user. The purpose...

View Article

Exact string results

Hi Team,need advise here.im using below command for user input and to search the string.but when i run the script it show the expected results.even if the string is inside the text file inside the text...

View Article


Help with syntax please

At least I think it's a syntax error. I want to create a script to do multiple installs. I've been fiddling around with it all morning and get certain parts of the code to work. This...

View Article

Image may be NSFW.
Clik here to view.

DSC Resources not being seen

I decided to play around with some of the PowerShell DSC 'experimental' resources. So I downloaded the DSC Resource Kit Wave 10, which has all the up to date experimental resources. That worked great.I...

View Article

Know PowerShell. Get-Paid?

So I forgot about a module I had loaded some time back fromPowerShell PipeWorks. One of the cmdlets that were loadedwas one called "Get-Paid".Curiosity took over, so I ran:Powershellget-helpget-paidAnd...

View Article


Powershell and RoboCopy - Looking for somehelp

OK All,Here's the layout. I have about 2.7 TB worth of data that I want to move...

View Article


Updating Users Attributes with a .csv file and Set ADUser where every attribute

Hope someone will help. Newbie to this Forum, apologies if I offend. I have exported an list of user sAMAccountnames from AD domain and forest level 2008 r2. I have extended the schema to add a new...

View Article

Remov Active Sync from disabled accounts

I have come up with a script that should remove Active Syncs from user accounts that are disabled, but i would also like to export the display name and alias to a csv. I don't know if my export-csv is...

View Article

Powershell Forms app question

Ok, we have a couple employees here that have to fill in a PDF form of a document multiple times a day as part of their job, unfortunately, this form is a bit clunky and while I understand why certain...

View Article

Need some Help with XML Scripting in Powershell - SonicWall GVC

Hello,I am trying to change the settings on the SonicWall GVC config.This file is written in XML.Here is my source...

View Article


Powershell script to do WMI query on existing machines from list

Hi. I'm trying to get a script to query a file of computer names, then run a nslookup on that list and if successful, pig to see if it is alive, and then if alive, run a WMI query against it.this is...

View Article

Changing the password of multiple local user accounts, with similar names

We have a demo environment for sales, that contains multiple users with the same name, except a different number appended to each name. (e.g, ijones75, aroark75, msmith22, etc.)There are also domain...

View Article


Powershell - Get-ChildItem, Rename/Move matching files

I am trying to write a script that will search a single path's files for two separate text phrases. If both of these strings are found I need to rename the file and move it to a certain directory....

View Article

My First PS Script - what am I doing wrong?

So I am trying to create a script that exports any machine in AD with the word host in its name and emails the output by count. Whenever I run the script below PS ISE complains about the...

View Article


Cannot figure this out. Weird powershell behavior.

I am at a loss here. I cannot seems to figure out why this script runs fine pointed at 1 list of computers and fails when pointed at another.This is simply a script to shutdown a list of computers. The...

View Article

Get_ADGroupMembers in multiple domains of the forest

PowershellI'm trying to pull all the members of groups with "PCSupport" in the name of the group. We have multiple domains and...

View Article

Powershell Question #2

I am struggling to figure this out, spent probably 2-3 hours so far trying to narrow it down but unsure how to complete this.What I am trying to accomplish is get count of everything that is a VM that...

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>