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

Get ADgroup properties

Normal 0 false false false EN-US ZH-CN X-NONEHi I am new to powershell, I need help to extract information into csv but not successful. I need information from AD, group with group name, description,...

View Article


Why is my compare script finding group inheritance ?

Hello,When I run my script it is returning groups that do not have the user AD group membership in it directly.Example if the person is a member of the Local Admins Group it is returning that he is a...

View Article


Script to install multiple software

Evening guysI'm completely new with powershell, so I'd like a little bit of help. I'm trying to install several piece of software at the same time, for that I've written this script:  $msi =...

View Article

write-host is inserting leading spaces on variables

It seems like this would be a no brainer but I have to admit defeat.$sIPAddress='192.168.1.152'write-host '"HostName"="'$sIPAddress'"'outputs"HostName"=" 192.168.1.152"I can't have the leading space. I...

View Article

Sorting Array Output

I have this code that works. $pc = "MyPC"$results = @()foreach ($machine in $pc) {    $caption = (Get-WMIObject -Class Win32_Operatingsystem -ComputerName $machine).caption    $computerName =...

View Article


Issues with escaping a semicolon ; in a LineURI string

Hello All! Hoping you can help me out, I am trying to pull the Telephone Number and IPPhone properties from AD objects and update the LineURI string on there Lync user. For some reason I can not get...

View Article

Passing a form value to a function

Hi,I'm trying to pass two form values to a function.  The function will take those values and search a database for user information and return it back to the form's fields.  Currently, the values...

View Article

GET-ADComputer not recognized

I have Server 2008R2 and when I attempt to use GET-ADComputer I get:"The term 'Get-ADComputer' is not recognized as the name of a cmdlet, function,....."I do have it installed in Windows Programs and...

View Article


Trim first character from a file without using string methods

Hi,I have a file with every line starts with ~(tilde) symbol. I want to trim only the very first tilde (~) in the very first line of the file. I dont want to save the file contents to a string variable...

View Article


Testing URIs and URLs with PowerShell

Recently I posted some revisions to the tools I use to create a troubleshooting toolkit. My preferred methodology is to maintain download information in a CSV file.Read More

View Article

SharePoint: Deleting the Web Part From Page Using PowerShell Scripts

One of the requirements we have in our project is to delete the web part from a page. So one of the obvious options is to delete the web part using a PowerShell script. Read More

View Article

Windows Server 2016 leaks reveal Nano Server, protected VM role plans

New leaks reveal a new 'zero footprint' Nano Server and a shielded virtual-machine role are likely to be part of Microsoft's Windows Server 2016 release.Read More

View Article

PowerShell Essentials (Part 7)

In this article, I'll explain how you can pass values to a PowerShell function.Read More

View Article


Microsoft reportedly prepping a tiny version of Windows Server

The idea behind the Nano Server is to make a server with just the components needed for the cloud.Read More

View Article

FTP Download - Multiple Files

I am trying to download multiple files from an FTP site. I have a script for single file download, but I'm not sure how to handle multiple file download.  Any suggestions?I've searched the Internet and...

View Article


background job to continue even if PS is closed

hi friendsat my office, sometimes internet is down because of many issues. i don't want manually come & check whether it's connected or not.i have created  the following simple script which checks...

View Article

PowerShell + EAS + MSExchange : Autodiscovery

This post is going to be on how to use PowerShell to get an insight in the Autodiscovery process which the EAS Mail clients use.Read More

View Article


Security descriptors, part3: raw descriptors and PowerShell Rate

In this part I'll get to the manipulation of the security descriptors with PowerShell. I'll deal with the code a bit differently than in the previous part: the whole code is attached as a file, and I...

View Article

Finding orphaned, disconnected, inaccessible, invalid vms using PowerCLI.

Today i want to show a way of finding vms that are orphaned, disconnected, inaccessible, invalid vms using PowerCLI. Again , we will be utilizing get-view for that with proper filter. If the VM gets...

View Article

Using PowerShell and WMI to Find Folders by File Type

We recently published an article about how to use PowerShell to find folders that contain a certain file type, such as the MP3 file format. I showed you how to search the file system using the DIR...

View Article
Browsing all 6937 articles
Browse latest View live