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

Powershell help

I need some help trying to figure out how to write a script to re-enable a add-in for word. What I would like to do is take the following command ( 2nd one) and say select object descrpition and if...

View Article


Powershell Set Printing Preference label size

Hi guys, I work at a company where our employees log into citrix virtual desktops. Zebra Label printers for the Ops department are mapped via a powershell script triggered by a group policy. One of...

View Article


copy and zip files with powershell

hi I'm trying to create a PowerShell script to copy folders from one location to another and then zip them. I can do the basic copy and zip with out a problem but there is a small complication - the...

View Article

Extract Specific 7zip files Based on Date Modified

Still New to scripting so please if this is the wrong place point me somewhere i can get assistance. Problem: We have 20 cameras recording 24/7. Each day we zip and archive for 90 days. Issue lies...

View Article

export users before given date in powershell

IM BACK! Ok, here is the issue. I am trying to create a script that exports a list of users. The issue I am running into is the client wants to be able to get it by an inputted value. So far so good,...

View Article


Script to list all active users and their group membership in a domain

I have been trying to modify the script created by Martin Pugh to list all active user and the groups that they are members of. Ultimately I would like to export the results to a .csv. I have been...

View Article

WinRM connection outside domain

So I have been attempting to create an automated deployment process using powershell that will create VMs and configure them to our specs once up and running. The VMs are a pretty vanilla setup of...

View Article

Powershell Question

I'm attempting to run this script: Get-Mailbox -Resultsize Unlimited | ?{$_.GrantSendOnBehalfTo} | select Name,GrantSendOnBehalfTo | export-csv -notypeinformation sendonbehalf.csv When I open that...

View Article


PowerShell kill process for user on Server 2012 RDS host

With Remote Desktop Services (RDS) in sever 2012 there is no ability to shadow a user's session. This is supposed to come back in R2, but for now I wanted a quick way to kill a process for a user on a...

View Article


Scheduled task to run cmd line - requires unix utc time - then email results

Howdy - These forums are great, and I'm hoping to get some help with a headache I have on doing a process manually that should be easier to automate than I've found it to be. I have a command line...

View Article

Powershell script parameter data type ADAccount.

I am working on a powershell script that accepts the following data type: [Microsoft.ActiveDirectory.Management.ADAccount] I cannot seem to figure out how to get it to `Import-Module ActiveDirectory`...

View Article

PowerShell Games 2013 Follow-up

The 2013 PowerShell games are long over but it sparked a lot of debate about best practices. I think it really highlighted how there are many "right" ways of doing things. Don Jones (PowerShell MVP,...

View Article

Setting Home Drive for new user with -Homedrive & -Homedirectory with Powershell

I have a Powershell script to create new users that works brilliantly. Except for the bit to assign a home drive to a new user. This is the line that fails: Get-ADUser $SamID | Set-ADUser...

View Article


How do you run an uninstall & install Powershell Script? - See more at: http://w

I have a silent uninstall & install script that I need to run. My question is how do I/can I run them both so it uninstalls the old version of the Software followed by installing the new version...

View Article

Power Shell Delete Temp Files, Cookies and Temp internet Files.

Dear PowerShell Spice Experts I have recently learn the many functionalities and options you have with powershell.I want one script to do the below1. Delete the...

View Article


Powershell FTP: FTP accounts with @ in them

I've got a powershell script that does some various uploading to different servers and it works great. However we needed to add another host to ftp to. I thought it was going to be as easy as just...

View Article

File Character - File Server Share Character Count Audit-Repot

Can anyone recommend a program that I can run to run a report on file character count. Whether I set parameters to report only files that are 180 characters or more, etc. Windows File share platform....

View Article


Assigning unique folder permissions in SharePoint libraries via PowerShell

Hi guys, Another SharePoint question for you. What I'm basically trying to do is assign one user permissions to one folder in a document library. I have 464 domain users, a subsite called "Personal...

View Article

Power Shell Remove entries in Host File

Looking for a script that can run on startup that will remove specific strings from systems host files. Several systems have entries in the local host file and we would like to remove them.

View Article

New-MailboxExportRequest refusing get-date variable

I have been ripping my hair out about this. I am trying to backup a mailbox to .pst via a script. I just want to grab everything that is more that a week old. The format on the get-date seems to throw...

View Article
Browsing all 15370 articles
Browse latest View live