Is it possible to create a object with multiple class member in powershell?
Hi, guys, I'm quite new in powershell scripting. I'm trying to use powershell to analysis some text based log (such as internal network access log).I saw some object related examples for powershell,...
View ArticleHide/Show Form Buttons Based on Selection
I am trying to build a simple gui form that has some buttons. So far the buttons I have created I would like to hide until the tab that they are on is clicked. Everything is working and this code is...
View Articlepowershell only showing last line output
Hi Team,I'm checking the multiple server performance output. But the export csv output only showing last server performance details. Could you please verify below script and share the valuable...
View ArticleSecurity Log
I'm trying to get information from a security log. This is what I have so far:$EDate = Get-EventLog -LogName Security -InstanceId 4732 -Newest 1 -computername $PC | select-object timegeneratedThis...
View ArticleIf test condition result to csv file
Hi Team,Below are the few lines of my script, Could any one tell me how to export the If-condition test result of this script to a csv file$Servers= import-csv "C:\testcounter.csv" $MasterArray = @()...
View ArticleNew-mailboxexportrequest to export contacts folder to CSV file
Hello,I'm having trouble exporting out the contacts to a .csv file. I have a UNC share created with the Exchange trusted subsystem with full control on the share and the ntfs permissions. I can do the...
View ArticleBITS-Transfer with IIS server.
I m tying to upload and download files from IIS server using BITS-Tansfer commandlets. my BITS jobs are getting queued but they are not completing even after explicitly resuming them.I have configured...
View ArticleHow to easily create log files
Hi Mr.Experts,I need the script to create a log file that will show the whole process and errors if occurred.how do I do this ? Please find the below script. $Servers= import-csv...
View ArticleFound the AD Group and members and exported to a csv but require the...
HiI have been tasked with obtaining all our Active Directory OU's that allow users access to our shared drives. These OU's have a user in the managedby field.Im very new to Powershell so please bear...
View ArticleTake Charge of Environment Variables in PowerShell
Environment variables contain important pieces of information about the system. For example, the SystemRoot environment variable tells you the Windows OS installation path (e.g., C:\Windows) and the...
View ArticleDo not see what I expect using get-childitem
Hi All, New to PowerShell and still learning BIG TIME! Playing with Get-PSDrive... I do set-location hklm: browse to the registry key - HKLM\Software\Microsoft\OLE - and then do a get-childitem ......
View ArticleGetting web server information through WMI
Specifically, what I want to do is determine the value of SSLFlags, especially SSLRequireCert. On servers which have an applicationhost.config file at \\server\admin$\system32\inetsrv\config, I can...
View ArticleQuestion regarding variable
I'm parsing a list of machines to get a list of profiles, and a list of admin shares.If I check individually, it works. If I call the functions I created, in the same pass, only the first returns...
View ArticleWebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestC...
I am trying to run this function to the runt he following function to enable the agents in bamboofunction Enable-Agent([array]$agents){ $agents | %{ write-host "enabling agent name: $_"...
View ArticleGet-Service Command
I am writing a script that will monitor 5 services on a Windows 2008 server. I was told by our server tech that sometimes that one of these five services can be "hung" yet in services.msc still show...
View ArticleWebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestC...
I am trying to run this function to enable the agents in bamboofunction Enable-Agent([array]$agents){ $agents | %{ write-host "enabling agent name: $_" $id = Get-AgentId $_...
View ArticleHelp with parsing information into the file name
Using this:$site = Get-SPSite "http://contoso.comsites/Todd"I am able to get this:Title -----...
View ArticleImport Variable
Hi,How do I get $.name to be working on the script that refer to the same variable.$_.name only working the first condition checking.Import-Csv .\DG.csv | ForEach {if (get-distributiongroup...
View ArticleDifferent result with $_.LastWriteTime
Hi,I have a folder with 180 000 small files and want to run the following command$LastTotal = Get-Childitem -Path C:\utdelat\2\Archived\* | where-object { $_.LastWriteTime -lt (get-date).AddDays(-63) }...
View ArticleUncheck the attribute "deny this user permission to log on to remote session...
Hello, I am new to powershell and mostly get my scripts by hunting down different links and piecing together what I want. I just received an excel sheet of bulk userIDs where I have to uncheck the...
View Article