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

Powershell Script: Proof Of Concept

This thread was started earlier today, http://community.spiceworks.com/topic/343454-lock-computer-automatically-when-user-leaves-desk?page=1, and it has to do with locking a pc automatically when the...

View Article


How can I get the current logged user name when I copy (powershell)

Hello! I have this: $target='\\server\%username%' $paths|%{Copy-Item $_ $target} How can I get the current logged user name in the target field when I want to copy? I know this environment variable:...

View Article


Add list of domains to a send connector (Exchange 2010)

I've been tasked with setting up forced TLS connections with one of our customers. No problem says I, we do that with other customers. I just have to add their domains to the TLS only list. The...

View Article

list all local users last logon time

I need to provide a list to my boss of all the local users on a windows server 2003 with their last login time. I've been trying to think about the easiest way to do this and been doing some searches...

View Article

PowerGUI and Last Nerves

Think I might be about done with PowerGUI. Seems like half the time I try to write a script with the AD tools it malforms the object and you can't use it. $User = Get-ADUser Martin9700 -Properties...

View Article


Help With Powershell Script

Trying to pull All Group Members from a list of domains. I have the information pulling I need but can't get it to go to excel and go to each tab correctly. And also I am sure there is a better way to...

View Article

Editing Group Policy Via Powershell?

I can't seem to find anything on this. I found the cmdlets for powershell group policy but I do not see anything that explains how to edit an existing GP. For example. I have an GP in a particular OU,...

View Article

How to Delete Emails Older than X days using Powershell

Hi everyone. Can you guys help figure out the script I need to delete voicemail messages in Outlook that are older than X days from Today so I don't have to manually enter the specific date range. I...

View Article


Converting vbScript to Powershell

Good article from the Microsoft Scripting Guy on converting vbScript to Powershell:http://community.spiceworks.com/topic/347050-converting-vbscript-to-powershell I've run into this myself, often just...

View Article


Fastest way to run AVG removal tool on all machines. Script?

We recently switched to GFI antivirus, but spiceworks says AVG is still residing on quite a few workstations. Instead of manually logging into each machine, how can I run the removal tool on all...

View Article

Administrate on Behalf of Windows Azure Active Directory Module for PowerShell

I have a client that has granted me access to administrate on behalf of his business's Office 365 subscription. How do I log onto his account through the Windows Azure Active Directory Module for...

View Article

export-csv & reading multiple csv files

Hi, I have a folder full of csv files. I'd like to be able to read in only the info that was written in the last few days for all files and write a csv out including the filename of the csv file. I've...

View Article

Is there a script out there...

that can find the fragmentation levels of my domain computers HD's?

View Article


The Great Debate: Which is better: Quest or Microsoft AD Tools?

Here's an example the answers that question, but the answer is "It Depends". (The original question was posted over in PowerGui at http://www.powergui.org/thread.jspa?threadID=20324&tstart=0) and...

View Article

Custom Object for API Call

I'm back with another question for the lesser used function of PowerShell in this community. I am working on an API web service call. And it appears like it is requiring a specially formatted object....

View Article


Powershell Script to search the corporate network for certain file extensions.

I am looking for a script that i can run and search every machine on the network for mp3 files but would like to be able to change the extention to search for something else later. Also for this to...

View Article

Why doesn't this command do what I would expect?

I have a .pst file called "test.pst" located in the usual C:\users\appdata\local\microsoft\outlook folder. I wanted to simply do a search on my computer and list all .pst files. Simple I thought. I...

View Article


Powershell 'Cannot bind paramater 'Identity' error

I have written a script for automatically configuring a users Outlook signature as well as adding their managers information by pulling this through Active Directory using Get-ADUser. It works...

View Article

Powershell script for starting/stopping service is slow

So this is my first Powershell script; its purpose is to start and stop a service on remote machines. param([String]$newStatus="Stopped", [String]$computersFilename="") if ($computersFilename -eq "")...

View Article

Redirecting errors in AD's Powershell module

I'm trying to write a quick script to discover things about my new domain, but I keep running into obstacles. I can't seem to find a way to suppress the error output from that module like I can in...

View Article
Browsing all 15370 articles
Browse latest View live


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