Quantcast
Browsing all 21975 articles
Browse latest View live

how to create TFS query link

I have below TFS query and I want to create a link for TFS like QueryLink so when we click the link it should open the query in web in TFSplease let me know how do I create the link.$tasktfs =...

View Article


date format conversion

hi,Is there a single command available to convert the format of date from one to another? Such as:mmddyy to yyyymmdd

View Article


String validation - use REGEX?

Hi allI'm trying to figure out the best way to perfom validation on a string representing a UNC path.  I would like to check that the path has a fourth backslash and also has some characters after the...

View Article

Find files that match with given string, except one character in a fixed...

Hi, I want to find files in a directory with a given string (ss-20140129-process-000*.sdx), where only one character will be mismatched, so have to use wildcard for that character. This means I am...

View Article

Install multiple hotfixes using powershell

Guys,I need help in  installing multiple hot fixes  using powershell on our domain controllers. i searched a little on google/bing  but was unable to find  the solution may be i am searching wrong :) ....

View Article


Remove old files and empty folders

Hi,I try to elegantely remove old files and folders.I got this Script Snippet:Function RemoveOldFiles { $TimeSpan = "14" $TargetFolder = "D:\test\folder" if (Test-Path $TargetFolder) { $Now = Get-Date...

View Article

User lastlogon workstation in domain

Hi I have list of users in CSV file ..I need to get the all users lastlogontime on workstations details where they have logged in domain..In short,, Lastlogon workstation of user in domain..How can I...

View Article

Find only one different extension, whole path, last write time, only files...

Hello! I need some help with my PowerShell script. This is what I got so far. Get-ChildItem p:\ -Include *.* -Recurse | Where { ! $_.PSIsContainer } | Select-Object Extension,LastWriteTime |...

View Article


Use Same Excel Object in Start-Job as Main PS1

I have hundreds of Excel files and one main file that has links to each of these files, but in order for the data to be pulled into the main excel file I need to have every file opened within the same...

View Article


Image may be NSFW.
Clik here to view.

Script to create a folder that can print a certain amount of files - works...

I've got this script [int]$copies = Read-Host "Number of copies" for ($i=0;$i -lt $copies;$i++) { Get-ChildItem "C:\Users\USER NAME\Desktop\PrintMe" | foreach {Start-Process -FilePath $_.FullName -Verb...

View Article

Remove-item recursive

How do you delete all the txt files from one folder and all sub folders?remove-item -Path Logs -Filter *.txt -RecurseThis works but it tries also to delete the subfolders and raises some...

View Article

Issuing a PKI Certificate via Powershell

Hi All,Noob in need of Powershell help:Currently my Access Control team have to manually issue PKI Certificates from the Certificate Authority console. I looking to automate this via powershell. I am...

View Article

Use Powershell to Reset Permissions on files/folders

Hello,I have a shared folder on a Windows 2003 R2 server that users are allowed full control to.  I have setup permissions on the root of the share, and all sub-folders inherit the permissions.  If a...

View Article


Solved - How to take ownership and change permissions for blocked files and...

Hello, I was trying to take ownership & fix permissions on Home Folder/My Documents structures, I ran into the common problem in PowerShell where Set-Acl & Get-Acl return access denied errors....

View Article

Extract data from a log (txt) and import them in excel

Hello everyone,I'd like to ask you if it is possible (As I'm newbie in powershell) and how to extract data(specific lines) from a log (txt) and import them in excel.Here the "problem" in details:I...

View Article


list directory of different servers

I am trying to get the list of directory of multiple servers, and trying the below code. But, When i execute the script, I get DirectoryList as empty. I have tried Invoke-Command, It doesn't work as...

View Article

Known Issues with PoSh 3.0 / WMF 3.0 on Server 2008 R2

Hi, we want to deploy WMF 3.0 on Server 2008R2 Sp1 on a larger scale.  Are there any more known Issues other than with these: System Center 2012 Configuration ManagerSystem Center Virtual Machine...

View Article


"Powershell 2 host programs that have been compiled with CLR 2"

Hi, i was reading the Windows PowerShell System Requirements and stumbled over the following sentence:"..."due to a change in the runtime activation policy in Microsoft .NET Framework 4.0, Windows...

View Article

Powershell v2 and Active directory module

Could anyone provide me the windows powershellv2(CTP3) link and Active directory module for 32 bit (OS: Windows 2003)Pls help.

View Article

Getting Error trying to convert XLS to CSV using Powershell Only when using...

HelloI have a Powershell script to convert XLS files to CSV. The CMD file calls the PS1 script, it takes all the XLS files from my input folder and convert them to CSV. that works nice if you run the...

View Article
Browsing all 21975 articles
Browse latest View live


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