Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

can you convert objects? System.Object to SMO

Hi all, trying to play around with a restore script to pull out random full backup file and then restore it. im having issues with the -relocatefile in "restore-sqldatabase", ive got the answers i need...

View Article


Change Header Names in Export-CSV Script

Good afternoon, we have a script that runs at x period of time. Its job is to get a set of data from a SQL server then output that data into a csv file for distribution.The script is full operational...

View Article


onjects and methods

I am trying to move an email object from one variable to another.The first is $todays_email_msg.item($TodaysItemCounter)and when I type this in I get the email that I expected.The second is...

View Article

Extracting Data from XML

It has been a long time since I have posted here, but I'm stuck on a powershell/xml question.I've written a powershell script that reads in a lot of data from some cmdlets and generates an XML...

View Article

PowerShell to cleanup expired "Client Operations" tasks

Deleting old, unused Client Operations tasks in the Configuration Manager 2012 Console is a pain because you cannot delete multiple items; you have to delete one by one....The following PowerShell...

View Article


A simple powershell script to bulk rename files in a folder in Windows 7

In this post I'm showing you how to buld rename a set of files in a folder. I'm using a powershell script to do this.Read More

View Article

Microsoft Virtual Academy: PowerShell M03

Today I continue forward on my goal of completing Microsoft's Virtual Academy's PowerShell 3.0 training.Read More

View Article

Identifying Active Directory built-in groups with PowerShell

Built-in groups are predefined security groups, defined with domain local scope, that are created automatically when you create an Active Directory domain. You can use these groups to control access to...

View Article


Review Database File Properties with PowerShell

One of the things a database administrator needs to keep track of is the usage of the file systems where the database files are kept. One of the features of the Windows operating system is the...

View Article


Remotely query user profile information with PowerShell

The PowerShell script discussed in this article will help you in querying for information about Windows user profiles on remote computers. The script returns user name, profile type, and in-use status...

View Article

query network speed on all devices in specific OU

Need to query adapter speeds for all devices in specific OU following works for my device but need to report on all devices in...

View Article

Script help for GPO

I have a powershell script that I am using as a computer startup script to install Lync 2013 and it works fine, here is my issue. I created a test OU and applied my GPO to that OU I also created a...

View Article

Want to delete (60) Disconnected mailboxes in 2010

We have moved over 60 mailboxes in exchange 2010 to another mailbox database. The original mailboxdatabase now has over 60 disconnected mailboxes.  We want to delete the mailboxes now and not wait for...

View Article


Powershell.exe As Elevated?

I am running a command from the run line on the start menu, but when it runs the script, it says:Warning: To preform some operations you must run an elevated Windows PowerShell console.  powershell.exe...

View Article

Running job on remote computer as scheduled job

There seems to be times and reasons why running a powershell command or script on a remote computer as a scheduled job is a neccesity. I have been trying to come up with a way to do this on all my...

View Article


The server threw an exception. (Exception from HRESULT: 0x80010105...

When I use PowerShell to call Office Word Com Object the exception occured.$:word = New-Object -ComObject 'Word.Application'$word.Visible = $true$doc = $word.Documents.Open($File)$selection =...

View Article

Import users from CSV file

Hello,I'm trying to import users from a CSV file into AD.This is what I've got so far:Import-Csv .\test.csv | foreach-object { New-ADUser -Title $_.UID -Surname $_.Surname -GivenName $_.GivenName...

View Article


Updating AD user information with Powershell

Ok I am very new to this. I have been watching videos and reading through various forums to learn what little powershell I currently know. Any help with this is greatly appreciated.I currently have to...

View Article

get-adcomputer question

 im trying to allow the ability to type partial names into the read-host prompt... example to type in "hsc123" but get all computers with the name hsc12301, hsc12302, hsc12303, etc. I am a newbie when...

View Article

Script for alarm and music

I was hoping someone could help me find a script that was an alarm (say for 7am) and would start up wmp and start randomly playing a song.  I would appreciate if anyone could cash in any ideas, I find...

View Article
Browsing all 8411 articles
Browse latest View live