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

getting folder ACLs on deep folder nests

I'm having some issues with a script that I'm not entirely sure how to solve myself. Gist of the full cmdletI have used this script plenty, and it works well enough, but it could be better. The bulk of...

View Article


Image may be NSFW.
Clik here to view.

Batch remove MSI Applications, wanna take a look and give me feedback?

Here's the link: http://community.spiceworks.com/scripts/show/2654-batch-remove-msi-applications-on-local-remote-comp...You'll need Powershell 3.0 or above (SHOOT, and by saying that, I just realized I...

View Article


What was your PowerShell project this week? 6/13/14

So what have you done in PowerShell in the last couple of weeks?For me it was all about refinement of current scripts.  One script to automate dealing with users who haven't logged in for 30 days or...

View Article

New to powershell

Hello all,I'm trying to learn powershell for advancement purposes as well as to do some task required of me for a project. I have lots of ambition and some good resources, but I am having some real...

View Article

Whats the best Execution Policy for PowerShell?

So on a few servers I changed the Execution Policy to Unrestricted.  After reading around the web, I realize this is really exposing me to PowerShell malware.So should I set Group Policy for an...

View Article


Scripting Help

I have 160 single user licenses of a program, that I cannot convert to a network license for various reasons.  I can do the deployment remotely, and I can copy the single license files after the...

View Article

Powershell Script to Report on Office 365

Hi guys,I'm relatively new to powershell and I'm trying to write my first complex (?) powershell script. The aim to retrieve a list of users in Office 365 who are not using their subscription and then...

View Article

Report on folders displaying size but also other calculated values

Dear,I'm using a nice powershell script provided here on the site:http://community.spiceworks.com/scripts/show/1738-get-foldersizesThis line: $RawSize = (Get-ChildItem $FileObject.FullName -Recurse |...

View Article


ActiveSync Reporting Customization

I'm running a report that will pull all the activesync information on our Exchange 2010 box and I do get a lot of great information but for reporting and sorting purposes I need to be able to modify...

View Article


To get-aduser or not to get-aduser that is the question

I've been researching this for a month now and have read everything aboutvariables in powershell and get-adobjectI could get my greedy littlehands on. I still don't get it.I tried to get anemail...

View Article

Convert Excel Cell into Variable in Powershell

I am trying to Convert Excel Cells into a variable in PowerShell. I want to dynamically read all cells in columns A & B and convert the values into those cells into a variable and use that variable...

View Article

Get-Process | Stop-Process command

I have read and heard that you will crash a PC by running the Get-Process | Stop-Process in PowerShell, however I am getting conflicting end result stories.I have heard you will get the BSOD and crash...

View Article

unable to compress file using windows default zippping facility in power shell

dear all,i have created a power shell script to compress the log files, i want the script to run every month and compress all the log files. I need to run this script in server so no additional third...

View Article


Rename Computer with OU Prefix? PowerShell

I'd like to create a powershell script that renames a computer with the prefix of the last OU container it is in. Any ideas? I found a neat little script on technet that pulls the full distinguished...

View Article

AD Quest tools wont run as different user

AD Quest tools wont run as different user

View Article


PowerShell chrgp script

Hi We have a Windows 2012 R2 servers and run the Microsoft NFS Server on it. As Windows doesn't currently expose the file ACL's via NFS the group ownership of files is important to allow permissions to...

View Article

Function that accepts values from pipeline or param; multiple object types

I am trying to write a script that adds an entry to ACLs. I want the script to accept input from the pipeline or as a parameter. I also want it to accept the directories/files as either a string or as...

View Article


Some help converting comma-delimited string to hash or array

Hey, I'm trying to write a script to parse WindowsDHCP logs, they come as a .log, and I'm using Get-Content to read them in, they then come is as an array of comma-delimited strings after line 33.I...

View Article

Array or loop needed for acl (security checking) script

Someone please help me, I have this code that looks into a text file "servers" and goes through each server sort of in a loop then goes to that server and looks at the $e drive checking the permissions...

View Article

AD User Notes Field

I'm trying to pull the group membership of an ad user and then pipe it in to the Notes field of the account. I'm trying the below...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images