Quantcast
Browsing all 21975 articles
Browse latest View live

Registry key last write time with PS?

Can I get registry key last write times (RegQueryKeyInfo/lpftLastWriteTime) with PowerShell?  Is there something more detailed that Get-ChildItem which will give them automatically?  Thanks. - Vince

View Article


How to create a custom object with mutliple attributes that can be accessed.

Hey guy,Have a quick question to see if I can get some feedback.I am needing to create an 'object' that has multiple attributes associated with it.  Much like a HashTable, but instead of it only having...

View Article


Newbie Powershell - Network capture

Hello, at this point I need to accomplish a basic task in Powershell:Since I have multiple network adapters configured, I need to pick the desired network adapter I want to capture packets from/to.THen...

View Article

c# search AD users

trying to search users but receive error (Operator '+' cannot be applied to operand of type 'string')public string searchuser(){try{DirectoryEntry entry =newDirectoryEntry("LDAP://"+...

View Article

Need to enable Web.DataVisualization?

I need to generate some reports with charts.  On all my machines (including a DC) with .NET 4 except one, I could simply load the DataVisualization assembly...

View Article


Need help on datagridview column sorting

I am trying to read a xml data into datagridview and want to sort the first column in ASC...

View Article

Access remote desktop servics and control panel

Hi,Can anyone tell me how to access systems and security in powershell and check settings using powershell. How to access mount points also using powershell on server ?

View Article

Comparing text files and adding new text

Hi i was wondering if anyone can help i have 2 text file i want to compare.one will be the final one and one is temporarythe temp file will have new information in it and i want to write these changes...

View Article


Image may be NSFW.
Clik here to view.

Select action on a powershell GUI (windows forms)

HiIve created a Gui with powershell and som list boxes.What i want to do is, when i select (mouse click on it) an object in my list, i want to show infomation about that object. But i cant find the...

View Article


get-winevent - how to get description?

When using get-winevent the Message field is almost always empty. This is where I assumed the description of the error would be.How do I get the error description (basically the text that is shown in...

View Article

c# listbox add

How to add items in listbox and columns public string searchuser()        {            try            {                DirectoryEntry entry = new DirectoryEntry("LDAP://" + GetSystemDomain());...

View Article

get duration of a mp3 in seconds

how can I get the duration of a mp3 file in seconds ?In need in seconds because  I use start-sleep and this cmdlet use -seconds parameter ..I found a module that "read" the information about  files,...

View Article

Modifying GCI output for a picky application.

Hi Guys,I want to get a list of all files (excluding directories) from a disk. I need them as paths, and I need them encased in quotes, as the programs I will be feeding the output into is quite picky...

View Article


Script to retrieve AD CA issued certificates

Hi there, I have the code below that I can point to my local Active Directory Certificate Authority and it will pull back expiring certificates, based on a set number of days.How do i run this script?...

View Article

Problem with Exchange 2007 Powershell script

Hi all,Basically I am following the guide below, I have re-installed exchange etc etc now I am trying to run the script to re-install the sbs2008...

View Article


Get-ADGroupmember with Members in different Forest's

Hi there,i got two trusted domains in different forests and want to retrieve the members oft some groups which contain members of both domains. Get-AdGroupmeber fails with an ADException Error. Groups...

View Article

Windows Update PowerShell Remoting

I am working on a script to do Windows Updates on a remote machine. I am using the runspace and powershell objects. I can query and recieve the list of updates, but as I go to download and install them...

View Article


Running multiple functions at once

I have a couple of status check functions which report on long-running functions (e.g. mailbox exports) which are foreach-ing against a list of user names.The long running functions all seem to run...

View Article

Can I do this with Powershell?

HiI'm looking to learn Powershell to automate some repetitive task we do in our Desktop support group. For example, could a script be written to prompt us for a user ID which we would then supply or...

View Article

excute error

When run the command set-qaduser , it pops the error , I am not sure if this is permission restriction , could advise a script to verify if this is really permission issue ? thanksset-qaduser : access...

View Article
Browsing all 21975 articles
Browse latest View live


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