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

Unblock downloaded files with PowerShell

Have you ever got in the situation that you downloaded a zip-file and figured out to late the files are blocked? So you extracted the zip file into a folder with existing items. It will be damn hard to...

View Article


RunAs administrator

I have tried to use the code below to open an application with runas Asminstrator on the UAC enabled environment. start-process -verb RunAs notepad But a 'Use Account Control' dialog appears to ask me...

View Article


For PowerShell Help, It Takes a Community

If you ever need help with PowerShell, you only need to turn to other PowerShell fans. And some of them are creating free or nearly-free tools, ready to download and use.  Read More

View Article

Automated Disaster Recovery with Hyper-V Replica and PowerShell 3.0 for FREE!

Hyper-V Replica is a new built-in feature of both Windows Server 2012 and our FREE Hyper-V Server 2012 products.  Hyper-V Replica enables Hyper-V hosts or clusters to enable distance replication of...

View Article

Image may be NSFW.
Clik here to view.

Creating Windows Explorer with Powershell

Hi!   I am new to Powershell, and I am still trying to get a hang of this so be gentle :) I have been asked to write an application so that users (managers) can see which groups have access to which...

View Article


Get valid write-host content to a variable

Hi The line  Write-Host (Get-Date) "LOGIN User:" $env:USERNAME works perfectly, but all attempts to get this info into a variable or pipe the info to another processor fail, e.g. $info = @((Get-Date)...

View Article

Image may be NSFW.
Clik here to view.

Get NTFS permissions in a ListBox.

Hello again! I'm still busy working on an application for managers to add users in a security group in Active Directory. What I have now is an form with a button that lets managers select a folder they...

View Article

Microsoft Server's last reboot time

Hello I am looking for a script that can tell me when all of the servers (2003\2008 etc)within a domain were last rebooted. I can compile a text file which lists all of the servers. Thank you  

View Article


Fetch user details using Get-ADUser??

hello, How can I fetch an information that has been populated into the Description filed in user object from a .txt or .csv file? I have used the below command, but it doesn't work... any help?...

View Article


Powershell Scripts to Look for Excel file types( .xlsx and .xls )

Hi Experts, I have an already written scripts which looks for ONLY an excel file with .xls extension. Now, 1. I want the same scripts to look for either .xls or .xlsx which ever it finds in that...

View Article

looking for the book for the beginner

I need to get involved into PowerShell for Active Directory. Since i am new to powershell and active directory, i need a quick start up book. Can anyone recommend anything?   Thanks a lot

View Article

$This

Hello All,Can some one please give me little more clarity on $This, I have read the help about it but not certain where you would and would not use it. I believe is similar to $_ but used in certain...

View Article

Exporting AD Users to CSV, editing/updating, then importing back into AD

Hi guys,   I am very new to Powershell and need some help. I would like to export all users to a CSV, file ( with only the details name, department, description, title, company,and office ) update the...

View Article


Test-Connection timestamp

I pieced together this powershell command: test-connection dwdmadwsa137 -count 2 -delay 60 | select __SERVER, Address, ProtocolAddress, ResponseTime | out-file c:\temp\test-connection.txt -append   It...

View Article

Script to lock webapplication

I need to lock/readonly the entire web application developed in sharepoint 2010.

View Article


Search Entire forest

I am trying to find if a user is disabled or not in AD, it seems the search is not happening for entire forest, I am able to find the users from one domain but not others. can someone tell me what is...

View Article

ConvertTo-HTML from log file

How can I convert a log file to HTML file without losing the format. I tried ConvertTo-HTML but it's not giving the desired output. I am not able to attach file to the post hence copied sample log...

View Article


Counting the number of occurances of a string on a single line

Hello All, Can someone kindly help me with the following question please. At first I thougt this was going to be easy, however it is turning out to be a little more difficult than I thought I have a...

View Article

How to Set Backup Mode using the PowerShell cmdlets

This module describes how to set backup mode for vault stores and index locations using the PowerShell script called Transform-Backup.ps1. This method is used when a third-party application is used to...

View Article

PowerShell logon script form oddities

I was recently asked to add some logic to our old vbs logon script, but since the old one had a lot of unused functions and needed a rewrite anyway I decided to try to rewrite it in PowerShell. Since I...

View Article
Browsing all 8411 articles
Browse latest View live