తెలుగులో ప్రశ్నలు POWERSHELL

By | April 17, 2015

translated-telugu


కాన్సెప్ట్: తరచుగా Powershell గురించి ప్రశ్నలు.

మీరు వివిధ మార్గాల్లో ఈ జాబితా ఉపయోగించవచ్చు:

  • స్క్రిప్ట్గా / పేస్ట్ ఆదేశాలను కాపీ
  • వెంటనే ఒక నిర్దిష్ట కమాండ్ యొక్క సింటాక్స్ చూడండి
  • మీ సాంకేతిక జ్ఞానాన్ని పెంచుకోండి
  • కొత్త ఆదేశాలు తెలుసుకుంటారు
  • ఒక ఉద్యోగ ఇంటర్వ్యూ సిద్ధం

నవీకరించబడింది
జూలై 02, 2015
రచయిత powershell-guru.com
మూల0 telugu.powershell-guru.com
వర్గం
75
ప్రశ్నలు
610


ACL
Active Directory
Alias
Arrays
Browsers
Certificates
Characters
CIM
Comments
COM Objects
Compare
Computer
Credentials
CSV
Culture
Date
Drives
Environment
Errors
Event Viewer
Files
Folders
Format Operator (-f)
Functions
GPO
GUI
Hardware
Hashtables
Help
History
Jobs
Keyboard
Loops
Math
Memory
Messages
Modules
Microsoft Excel
Microsoft Exchange
Microsoft Outlook
Microsoft SharePoint
Networking
Openfiles
Operators
Parameters
Password
Powershell ISE
Printers
Processes
PSObject
Quest
Random
RDP
Regedit
Regex
Remote
Restore
Scheduled Tasks
Search
SCCM
Services
SMTP
Snapins
Sounds
Static .NET Methods
Strings
System
Try/Catch
Variables
Symantec Vault
Windows10
Windows 2012
Windows Azure
Windows Forms
WMI
XML

System

ఎలా PowerShell నా వెర్షన్ నిర్ణయించడం ఎలా?

ఎలా వెనుకబడిన అనుకూలత కోసం మరొక వెర్షన్ లో Powershell అమలు చేయడానికి?
powershell.exe -Version 2.0

ఎలా PowerShell తో స్క్రిప్ట్ లో ఒక తక్కువ PowerShell వెర్షన్ (3.0 మరియు అధిక) అవసరం?
#Requires -Version 3.0

ఎలా PowerShell తో స్క్రిప్ట్ కోసం నిర్వాహక అధికారాలను అవసరం?

ఎలా PowerShell తో స్క్రిప్ట్ పారామితులు తనిఖీ ఎలా?
help -Name .\Get-ExchangeEnvironmentReport.ps1 -Full

ఎలా PowerShell తో ప్రస్తుత యూజర్ కోసం సమాచారం పొందడానికి?
[Security.Principal.WindowsIdentity]::GetCurrent()

ఎలా సృష్టించడానికి, సవరించడానికి మరియు PowerShell తో ఒక ప్రొఫైల్ రీలోడ్?

ఎలా PowerShell తో ఒక లిపిలో 5 సెకన్ల / నిమిషాల విరామం చేయడానికి?
Start-Sleep -Seconds 5
Start-Sleep -Seconds 300 # 5 minutes

ఎలా PowerShell తో గత బూట్ సమయం పొందుటకు?
(Get-CimInstance -ClassName win32_operatingsystem).LastBootUpTime

ఎలా PowerShell తో రకము యాక్సిలరేటర్ పొందడానికి?

ఎలా PowerShell తో స్టార్టప్ ప్రొగ్రాయ్ జాబితా?

ఎలా PowerShell తో ఒక అప్లికేషన్ అన్ఇన్స్టాల్?

ఎలా మొత్తం డెస్క్ టాప్ లేదా PowerShell తో ఒక క్రియాశీల గవాక్షం యొక్క స్క్రీన్ షాట్ వహించడానికి ఎలా?
Take-ScreenShot -Screen -File 'C:\scripts\screenshot.png' -Imagetype JPEG
Repository : Take-ScreenShot

ఎలా PowerShell తో MSMQ క్యూలు సందేశాన్ని కౌంట్ పొందడానికి?

ఎలా PowerShell తో అమలు విధానం సెట్ ఎలా?

ఎలా PowerShell తో ఒక షార్ట్ కట్ సృష్టించడానికి?

ఎలా పిన్ లేదా PowerShell తో టాస్క్ బార్ కార్యక్రమాన్ని పిన్ తీసివేయి?

ఎలా PowerShell తో ఒక ఎక్స్ ఫ్లొరర్ విండోస్ తెరిచేందుకు?
[Diagnostics.Process]::Start('explorer.exe')
Invoke-Item -Path C:\Windows\explorer.exe

ఎలా PowerShell తో పరికర డ్రైవర్లు జాబితా?
Get-WmiObject -Class Win32_PnPSignedDriver
Get-WindowsDriver -Online -All
driverquery.exe

ఎలా PowerShell తో ఒక GUID సృష్టించడానికి?

ఎలా PowerShell తో ప్రస్తుత యూజర్ కోసం తాత్కాలిక డైరక్టరీని స్థానాన్ని పొందడానికి?
[System.IO.Path]::GetTempPath()

ఎలా ఒక మార్గం మరియు PowerShell తో ఒక్క మార్గంలో ఒక పిల్లల మార్గం చేరడానికి?
Join-Path -Path C:\ -ChildPath \windows

ఎలా PowerShell తో అన్ని cmdlets “Get- *” జాబితా?
Get-Command -Verb Get

ఎలా PowerShell తో ప్రత్యేక సిస్టమ్ ఫోల్డర్లు జాబితా?

ఎలా PowerShell తో ISO / VHD ఫైళ్లు మౌంట్?
Mount-DiskImage 'D:\ISO\file.iso' # ISO
Mount-DiskImage 'D:\VHD\file.vhd' # VHD

ఎలా PowerShell తో ఇన్స్టాల్ .NET ఫ్రేమ్వర్క్ సంస్కరణలు తనిఖీ ఎలా?

NET ఫ్రేమ్వర్క్ వెర్షన్ 4.5 PowerShell తో ఇన్స్టాల్ చేసినట్లయితే తనిఖీ ఎలా?
(Get-ItemProperty -Path 'HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full' -EA 0).Version -like '4.5*'

ఎలా మొదలు మరియు PowerShell తో (Windows PowerShell సెషన్ రికార్డు సృష్టించడానికి) నకలు ఆపడానికి?
Start-Transcript -Path 'C:\scripts\transcript.txt
Stop-Transcript

ఎలా PowerShell తో ఒక నిర్దిష్ట నగర ప్రస్తుత డైరెక్టరీ మార్చడం ఎలా?
Set-Location -Path 'C:\scripts'

ఎలా PowerShell తో స్క్రీన్ క్లియర్?
Clear-Host
cls # Alias

ఎలా PowerShell తో ప్రదర్శన స్పష్టత మార్చడానికి ఎలా?
Set-DisplayResolution -Width 1280 -Height 1024 -Force # Windows 2012

ఎలా PowerShell తో పూర్తి స్క్రీన్ విండో సెట్ ఎలా?
mode.com 300

ఎలా PowerShell తో ఒక చిత్రాన్ని కొలతలు (వెడల్పు మరియు ఎత్తు) పొందుటకు?

ఎలా PowerShell తో Windows ఉత్పత్తి కీ పొందడానికి?

Perfmon

ఎలా PowerShell తో గత 5 సెకన్లు (10 సార్లు) ప్రస్తుత “% ప్రాసెసర్ సమయం” (సగటు) పొందుటకు?
(Get-Counter '\Processor(_total)\% Processor Time' -SampleInterval 5 -MaxSamples 10).CounterSamples.CookedValue

Assemblies

ఎలా PowerShell తో సమావేశాలు లోడ్?

ఎలా PowerShell తో లోడ్ ప్రస్తుత .NET సమావేశాలు తనిఖీ ఎలా?

ఎలా PowerShell తో GAC (గ్లోబల్ అసెంబ్లీ Cache) మార్గం కనుగొనేందుకు?

Clipboard

ఎలా PowerShell తో క్లిప్ బోర్ద్ ఫలితాలు కాపీ?

ఎలా PowerShell తో క్లిప్ బోర్ద్ కంటెంట్ పొందడానికి?
Add-Type -AssemblyName PresentationCore
[Windows.Clipboard]::GetText()

Hotfixes

ఎలా PowerShell తో ఇన్స్టాల్ hotfixes పొందడానికి?
Get-HotFix -ComputerName $computer

ఎలా PowerShell తో ఒక నిర్దిష్ట తేదీ తర్వాత ముందు ఇన్స్టాల్ hotfixes / పొందాలో?
Get-HotFix | Where-Object -FilterScript { $_.InstalledOn -lt ([DateTime]'01/01/2015') } # Before 01/01/2015
Get-HotFix | Where-Object -FilterScript {$_.InstalledOn -gt ([DateTime]'01/01/2015')} # After 01/01/2015

ఒక hotfix PowerShell తో ఇన్స్టాల్ చేసినట్లయితే తనిఖీ ఎలా?
Get-HotFix -Id KB2965142

ఎలా PowerShell తో రిమోట్ కంప్యూటర్లో ఇన్స్టాల్ hotfixes పొందడానికి?
Get-HotFix -ComputerName $computer

Pagefile

ఎలా PowerShell తో పేజ్ ఫైల్ సమాచారం పొందడానికి?
Get-WmiObject -Class Win32_PageFileusage | Select-Object -Property Name, CurrentUsage, AllocatedBaseSize, PeakUsage, InstallDate

ఎలా PowerShell తో పేజ్ ఫైల్ సిఫార్సు పరిమాణం (MB) పొందుటకు?
[Math]::Truncate(((Get-WmiObject -Class Win32_ComputerSystem).TotalPhysicalMemory) / 1MB) * 1.5

ఎలా D ఒక పేజ్ ఫైల్ (4096 MB) సృష్టించడానికి: PowerShell తో డ్రైవ్?

ఎలా సి ఒక pagefile తొలగించడానికి: PowerShell తో డ్రైవ్?

Maintenance

ఎలా PowerShell తో ఒక డ్రైవ్ ఫ్రాగ్మెంటేషన్ తనిఖీ ఎలా?

ఎలా PowerShell తో డ్రైవులు డిస్క్ స్పేస్ తనిఖీ ఎలా?

Up


Files

ఎలా PowerShell తో ఒక ఫైల్ తెరిచి?
Invoke-Item -Path 'C:\scripts\file.txt'
.'C:\scripts\file.txt'

ఎలా PowerShell తో ఒక ఫైల్ చదవడానికి?
Get-Content -Path 'C:\scripts\file.txt'
gc "C:\scripts\file.txt" # Alias

ఎలా PowerShell తో ఒక ఫైల్ కు ఔట్ పుట్ వ్రాయడానికి?
'Line1', 'Line2', 'Line3' | Out-File -FilePath 'C:\scripts\file.txt'
'Line1', 'Line2', 'Line3' | Add-Content -Path file.txt

ఎలా PowerShell తో ప్రస్తుత స్క్రిప్ట్ ఫైలు యొక్క పుర్తి పేరు పొందడానికి?
$MyInvocation.MyCommand.Path

ఎలా PowerShell తో / zip ఫైళ్లను విస్తరించడంలో?
Add-Type -AssemblyName 'System.IO.Compression.Filesystem'
[System.IO.Compression.ZipFile]::CreateFromDirectory($folder,$fileZIP)

ఎలా PowerShell తో /ఆన్ జిప్ ఫైళ్ళను విస్తరించడంలో?
Add-Type -AssemblyName 'System.IO.Compression.Filesystem'
[System.IO.Compression.ZipFile]::ExtractToDirectory($fileZIP, $folder)

ఎలా PowerShell తో ఒక జిప్ ఆర్చీవ్ ఫైల్స్ చూడటానికి?
Add-Type -AssemblyName 'System.IO.Compression.Filesystem'
[System.IO.Compression.ZipFile]::OpenRead($fileZIP)

ఎలా PowerShell తో KB ఒక ఫైల్ యొక్క పరిమాణం ప్రదర్శించడానికి?
(Get-ChildItem -Path .\winsrv.dll).Length /1KB
(Get-ChildItem -Path .\winsrv.dll).Length /1MB
(Get-ChildItem -Path .\winsrv.dll).Length /1GB

ఎలా పెద్ద ఫైళ్ళను లేదా PowerShell తో 1 GB కంటే తక్కువ కనుగొనేందుకు?

ఎలా PowerShell తో పొడిగింపు లేకుండా ఒక ఫైల్ యొక్క పేరు ప్రదర్శించడానికి?
[System.IO.Path]::GetFileNameWithoutExtension('C:\Windows\system32\calc.exe') # Return calc

ఎలా PowerShell తో ఒక ఫైల్ పొడిగింపు ప్రదర్శించడానికి?
[System.IO.Path]::GetExtension('C:\scripts\file.txt') # Return .txt

ఎలా PowerShell తో ఒక ఫైల్ యొక్క ఫైల్ వెర్షన్ పొందుటకు?

ఒక ఫైల్ ఎలా Powershell హ్యష్ పొందడానికి?
(Get-FileHash $file).Hash

ఎలా PowerShell తో ఒక ఫైల్ యొక్క MD5 / SHA1 చెక్ సయ్ పొందడానికి?
Get-FileHash $file -Algorithm MD5
Get-FileHash $file -Algorithm SHA1

ఎలా PowerShell తో దాచిన ఫైళ్లు ప్రదర్శించడానికి?

ఒక ఫైల్ PowerShell తో ఒక పొడిగింపును కలిగి ఉంటే తనిఖీ ఎలా?

ఎలా మాత్రమే PowerShell తో చదవండి వంటి ఫైల్ సెట్ ఎలా?
Set-ItemProperty -Path .\file.txt -Name IsReadOnly -Value $true

ఎలా PowerShell తో ఒక ఫైల్ కోసం గత వారం LastWriteTime గుణం మార్చడం ఎలా?
Set-ItemProperty -Path .\file.txt -Name LastWriteTime -Value ((Get-Date).AddDays(-7))
If not working, use Nirsoft tool: BulkFileChanger.

ఎలా PowerShell తో ఒక కొత్త ఫైల్ సృష్టించడానికి?
New-Item -ItemType File -Path 'C:\scripts\file.txt' -Value 'FirstLine'

ఎలా PowerShell తో ఒక ఫైలు పేరును?
Rename-Item -Path 'C:\scripts\file.txt' -NewName 'C:\scripts\powershellguru2.txt'

ఎలా బల్క్ / బ్యాచ్ PowerShell తో బహుళ ఫైళ్లను పేరు ఎలా?
Get-ChildItem -Path C:\scripts\txt | Rename-Item -NewName { $_.Name -replace ' ', '_' }

ఎలా PowerShell తో ఒక ఫైల్ను మీరు తొలగించాలని?
Remove-Item -Path 'C:\scripts\file.txt'

ఎలా PowerShell తో ఒక ఫైల్ యొక్క 10 తాజా పంక్తులు ప్రదర్శించడానికి?
Get-Content -Path 'C:\scripts\log.txt' -Tail 10

ఎలా PowerShell తో ఫోల్డర్ పలు ఫైళ్లను బ్లాక్ తీయడానికి?
Get-ChildItem -Path 'C:\scripts\Modules' | Unblock-File

ఎలా PowerShell తో ఒక ఫైల్ నుండి ఖాళీ పంక్తులు తొలగించడానికి ఎలా?
(Get-Content -Path file.txt) | Where-Object -FilterScript {$_.Trim() -ne '' } | Set-Content -Path file.txt

ఒక ఫైల్ PowerShell తో ఉనికిలో ఉంటే తనిఖీ ఎలా?

ఎలా PowerShell తో ఫోల్డర్ లో సరికొత్త / పురాతన రూపొందించినవారు ఫైలు ఎలా పొందాలో?

ఎలా PowerShell తో ఒక ఫైల్ నుండి నకిలీలను పంక్తులు తొలగించడానికి ఎలా?

ఎలా PowerShell తో ఫోల్డర్ లో మరింత / 1 కన్నా తక్కువ నెల రూపొందించినవారు ఫైళ్ళను పొందడానికి?

ఎలా PowerShell తో ఫోల్డర్ లో మరింత / తక్కువ కంటే 1 సంవత్సరం రూపొందించినవారు ఫైళ్ళను పొందడానికి?

ఎలా PowerShell తో ఒక ఫైల్ ఒక వేరియబుల్ విలువ ఎగుమతి?
Set-Content -Path file.txt -Value $variable

ఎలా PowerShell తో ఒక ఫోల్డర్లో ఫైళ్లను సంఖ్య (* .txt) లెక్కించడానికి?

ఎలా PowerShell తో బహుళ ఫైళ్లను లోపల ఒక స్ట్రింగ్ అన్వేషణ?
Select-String -Path 'C:\*.txt' -Pattern 'Test'

ఎలా PowerShell తో ఒక ఫైల్ యొక్క మొదటి / చివరి లైన్ ప్రదర్శించడానికి?

ఎలా PowerShell తో ఒక ఫైల్ యొక్క ఒక నిర్దిష్ట లైన్ సంఖ్య ప్రదర్శించడానికి?

ఎలా PowerShell తో ఒక ఫైల్ యొక్క రేఖల సంఖ్య లెక్కించడానికి?

ఎలా PowerShell తో ఒక ఫైల్ యొక్క అక్షరాలు మరియు పదాలు సంఖ్యను లెక్కించటానికి?

ఎలా PowerShell తో ఒక ఫైల్ డౌన్ లోడ్ ఎలా?
Invoke-WebRequest -Uri 'http://www.nirsoft.net/utils/searchmyfiles.zip' -OutFile 'C:\tools\searchmyfiles.zip'

ఎలా PowerShell తో ఒక ఫైల్ పూర్తి మార్గం ప్రదర్శించడానికి?
Resolve-Path -Path .\script.ps1 # Return C:\Scripts\script.ps1

Copy

ఎలా PowerShell తో ఒక ఫోల్డర్కు ఒక ఫైల్ కాపీ ఎలా?
Copy-Item -Path 'C:\source\file.txt' -Destination 'C:\destination'

ఎలా PowerShell బహుళ ఫోల్డర్లను ఒక ఫైల్ కాపీ ఎలా?

ఎలా PowerShell లో ఒక ఫోల్డర్ బహుళ ఫైళ్లను కాపీ?
Get-ChildItem -Path 'C:\source' -Filter *.txt | Copy-Item -Destination 'C:\destination'

Up


Active Directory

Domain & Forest

Computers

Groups

Organizational Unit (OU)

Users

Domain & Forest

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో గ్లోబల్ కాటలాగ్ సర్వర్లు కనుగొనేందుకు?
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().GlobalCatalogs

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ సైట్లు కనుగొనేందుకు?
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Sites

ఎలా PowerShell తో ప్రస్తుత డొమైన్ నియంత్రకం కనుగొనేందుకు?
(Get-ADDomainController).HostName

ఎలా PowerShell తో ఒక డొమైన్ లో అన్ని డొమైన్ నియంత్రిక కనుగొనేందుకు?

ఎలా PowerShell తో AD ప్రతికృతి వైఫల్యాలు కనుగొనేందుకు?
Get-ADReplicationFailure dc02.domain.com # Windows 8 and 2012

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ అడవి కోసం సమాధి జీవితకాలం తెలుసుకోవడం ఎలా?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో అడవి / డొమైన్ వివరాలు పొందడానికి?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో “తొలగించినవి Objects” కంటైనర్ మార్గం పొందడానికి?
(Get-ADDomain).DeletedObjectsContainer

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ AD రీసైకిల్ బిన్ విశిష్టతను?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ రీసైకిల్ బిన్ నుండి ఒక ప్రకటనను ఖాతా పునరుద్ధరించడానికి ఎలా?
Get-ADObject -Filter 'samaccountname -eq "powershellguru"' -IncludeDeletedObjects | Restore-ADObject

ఎలా PowerShell తో FSMO పాత్రలు కనుగొనేందుకు?

ఎలా PowerShell తో ఒక నిర్దిష్ట డొమైన్ కంట్రోలర్ కు కనెక్ట్?
Get-ADUser -Identity $user -Server 'serverDC01'

ఎలా PowerShell తో ప్రస్తుత లాగాన్ సర్వర్ కావాలని?

ఎలా PowerShell తో ఒక కంప్యూటర్లో “gpupdate” నిర్వహించడానికి ఎలా?
Invoke-GPUpdate -Computer $computer -Force -RandomDelayInMinutes 0 # Windows 2012

Groups

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ కొత్త గుంపును సృష్టించడానికి?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ గుంపును తొలగించు?
Remove-ADGroup -Identity 'PowershellGuru'

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ సమూహానికి వినియోగదారుని జోడించడానికి ఎలా?
Add-ADGroupMember "Powershell Guru" -Members powershellguru

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో గుంపు నుండి ఒక యూజర్ తొలగించడానికి ఎలా?
Remove-ADGroupMember 'Powershell Guru' -Members powershellguru

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ (ఏ సభ్యులతో) ఖాళీ సమూహాలు కనుగొనేందుకు?
Get-ADGroup -Filter * -Properties Members | Where-Object -FilterScript {-not $_.Members}

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ (ఏ సభ్యులతో) ఖాళీ సమూహాలు లెక్కించడానికి?
(Get-ADGroup -Filter * -Properties Members | Where-Object -FilterScript {-not $_.Members}).Count

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో గుంపు సభ్యులు పొందడానికి?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ రికర్సివ్ సభ్యులతో ఒక గుంపు సభ్యులు పొందడానికి?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ రికర్సివ్ సభ్యులు లేకుండా ఒక గ్రూపు సభ్యుల సంఖ్య / లెక్కించడానికి?

Users

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ “గెట్-ADUser” వడపోత ఒక వైల్డ్ కార్డ్ ఉపయోగించాలి?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ మరొక OU ఒక యూజర్ తరలించడానికి?
Move-ADObject -Identity $dn -TargetPath 'OU=myOU,DC=domain,DC=com'

ఎలా PowerShell తో వినియోగదారు కోసం అన్ని MemberOf (Nested) కనుగొనడానికి?
Get-ADGroup -LDAPFilter "(member:1.2.840.113556.1.4.1941:=$($dn))"

ఎలా PowerShell తో ఒక వినియోగదారు కోసం MemberOf (చిన్న పేరు / కత్తిరించబడింది) పొందుటకు?
(Get-ADUser $user -Properties MemberOf).MemberOf | ForEach-Object -Process {($_ -split ',')[0].Substring(3)} | Sort-Object

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు ఖాతా కోసం పేరు (FULLNAME), DisplayName, GivenName (firstname) మరియు ఇంటిపేరు (LASTNAME) రీనేమ్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు ఖాతా కోసం వివరణ, ఆఫీసు మరియు (టెలి) ఫోన్ నంబర్ మార్చడం ఎలా?
Set-ADUser $samAccountName -Description 'IT Consultant' -Office 'Building B' -OfficePhone '12345'

ఎలా గడువు తేదీ సెట్ PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు డీ ఖాతా కోసం “31/12/2015” లేదా “ఎప్పుడూ”?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు డీ ఖాతా అన్లాక్ ఎలా?
Unlock-ADAccount $samAccountName

ఎలా ఎనేబుల్ / PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారుడీ ఖాతా డిసేబుల్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారుడీ ఖాతా తొలగించడానికి ఎలా?
Remove-ADUser $samAccountName

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారుడీ ఖాతా కోసం ఫాస్ వర్డ్ రీసెట్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ పలు వినియోగదారుడీ ఖాతాలు (సమూహ) కోసం ఒక ఫాస్ వర్డ్ రీసెట్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో ఒక ఫైల్ యొక్క యజమాని కనుగొనేందుకు?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు కోసం OU (ఆర్గనైజేషనల్ యూనిట్) కనుగొనడానికి?
[regex]::match("$((Get-ADUser $user -Properties DistinguishedName).DistinguishedName)",'(?=OU=)(.*\n?)').value

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ వికలాంగులు వినియోగదారుల ఖాతాలకు కనుగొనేందుకు?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో గడువు వినియోగదారుల ఖాతాలకు కనుగొనేందుకు?
Search-ADAccount -AccountExpired

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లాక్ వినియోగదారుల ఖాతాలకు కనుగొనేందుకు?
Search-ADAccount -LockedOut

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక వినియోగదారు ఖాతా SID కనుగొనేందుకు?
(Get-ADUser $user -Properties SID).SID.Value

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ SID కు ఒక యూజర్ పేరు మార్చేందుకు?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ వాడుకరిపేరు ఒక SID మార్చేందుకు?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ వినియోగదారు ఖాతాకు యొక్క విశిష్ట పేరు స్ప్లిట్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ వినియోగదారు ఖాతాకు సృష్టి / సవరణ తేదీ కనుగొనేందుకు?
Get-ADUser -Identity $user -Properties whenChanged, whenCreated | Format-List -Property whenChanged, whenCreated

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ తరగతి “యూజర్” ఐచ్ఛిక మరియు తప్పనిసరి లక్షణాలు ప్రదర్శించడానికి?

ఎలా PowerShell తో Active Directory తో ఒక వినియోగదారు కోసం LDAP మార్గం పొందడానికి?

ఎలా PowerShell తో Active Directory తో ఒక వినియోగదారు కోసం CN (చట్ట పేరు) మార్చడం ఎలా?
Rename-ADObject $((Get-ADUser $user -Properties DistinguishedName).DistinguishedName) -NewName 'Test Powershell'

ఎలా ఆర్గనైజేషనల్ యూనిట్ PowerShell తో Active Directory తో ఒక వినియోగదారు యొక్క (OU) మాతృ పొందడానికి?

ఎలా PowerShell తో Active Directory తో (ఖాతా సృష్టించిన) ఒక వినియోగదారు యొక్క యజమాని పొందడానికి?

ఎలా PowerShell తో Active Directory తో ఒక వినియోగదారు కోసం pwdLastSet గుణం మార్చేందుకు?

Computers

ఎలా స్థానిక కంప్యూటర్ మరియు PowerShell తో డొమైన్ మధ్య సురక్షిత చానెల్ పరీక్షించడానికి?
Test-ComputerSecureChannel

ఎలా స్థానిక కంప్యూటర్ మరియు PowerShell తో డొమైన్ మధ్య సురక్షిత చానెల్ రిపేరు?
Test-ComputerSecureChannel -Repair

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో కంప్యూటర్ ఖాతాలో డిసేబుల్?
Disable-ADAccount $computer

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ నిర్దిష్ట ఆపరేటింగ్ సిస్టమ్ కంప్యూటర్లు కనుగొనేందుకు?

Organizational Unit (OU)

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక ఆర్గనైజేషనల్ యూనిట్ (OU) సృష్టించడానికి?
New-ADOrganizationalUnit -Name 'TEST' -Path 'DC=domain,DC=com'

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఆర్గనైజేషనల్ యూనిట్ (OU) వివరాలను పొందడానికి?
Get-ADOrganizationalUnit 'OU=TEST,DC=domain,DC=com' -Properties *

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ఒక ఆర్గనైజేషనల్ యూనిట్ (OU) యొక్క వివరణ మార్చడానికి ఎలా?
Set-ADOrganizationalUnit 'OU=TEST,DC=domain,DC=com' -Description 'My description'

ఎలా ఎనేబుల్ / PowerShell తో యాక్టివ్ డైరెక్టరీ ప్రమాదవశాత్తు తొలగింపు నుండి ఒక ఆర్గనైజేషనల్ యూనిట్ (OU) డిసేబుల్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ అన్ని ఆర్గనైజేషనల్ యూనిట్ (OU) అనుకోకుండా తొలగింపు ఎనేబుల్?

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ ప్రమాదవశాత్తు తొలగింపు నుండి రక్షించబడింది ఒక ఆర్గనైజేషనల్ యూనిట్ (OU) తొలగించండి ఎలా?

ఎలా PowerShell తో Active Directory తో CanonicalName కు ఆర్గనైజేషనల్ యూనిట్ (OU) ఒక DistinguishedName మార్చేందుకు?

ఎలా PowerShell తో ఖాళీ సంస్థల యూనిట్ల (మరో మార్గము) జాబితాకు?

ఎలా PowerShell తో ఒక సమూహం యొక్క మేనేజర్ పొందడానికి?
(Get-ADGroup $dn -Properties Managedby).Managedby

Up


Regex (Regular Expression)

ఎలా PowerShell తో Regex తో ఒక IP చిరునామా v4 (80.80.228.8) సేకరించేందుకు?
$example = 'The IP address is 80.80.228.8'
$ip = [regex]::match($example,'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b').value

“-” Regex తో PowerShell తో ఎలా విభజించడానికి ఒక MAC చిరునామా (C0-D9-62-39-61-2D) సేకరించేందుకు?
$example = 'The MAC address is C0-D9-62-39-61-2D'
$mac = [regex]::match($example,'([0-9A-F]{2}[-]){5}([0-9A-F]{2})').value

విభజించడానికి తో (2D: డీ -9: 62: 39: 61 C0) “:” Regex తో PowerShell ఎలా ఒక MAC చిరునామా సేకరించేందుకు?
$example = 'The MAC address is C0:D9:62:39:61:2D'
$mac = [regex]::match($example,'((\d|([a-f]|[A-F])){2}:){5}(\d|([a-f]|[A-F])){2}').value

ఎలా PowerShell తో Regex ఒక తేదీ (10/02/2015) సేకరించేందుకు?
$example = 'The date is 10/02/2015'
$date = [regex]::match($example,'(\d{2}\/\d{2}\/\d{4})').value

ఎలా PowerShell తో Regex ఒక URL (www.powershell-guru.com) సేకరించేందుకు?
$example = 'The URL is www.powershell-guru.com'
$url = [regex]::match($example,'[a-z]+[:.].*?(?=\s)').value

ఎలా PowerShell తో Regex తో ఒక ఈ మెయిల్ (user@domain.com) సేకరించేందుకు?
$example = 'The email is user@domain.com'
$email = [regex]::match($example,'(?i)\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b').value

ఎలా PowerShell తో Regex తో స్ట్రింగ్ ఉదాహరణకు నుండి “గురు” తీయడం ఎలా?
$example = 'www.powershell-guru.com'
[regex]::match($example,'(?<=-)(.*\n?)(?=.com)').value

ఎలా PowerShell తో Regex తో స్ట్రింగ్ ఉదాహరణకు నుండి “guru.com” తీయడం ఎలా?
$example = 'www.powershell-guru.com'
[regex]::match($example,'(?<=-)(.*\n?)(?<=.)').value

ఎలా PowerShell తో Regex తో స్ట్రింగ్ ఉదాహరణకు నుండి “powershell-guru.com” తీయడం ఎలా?
$example = 'www.powershell-guru.com'
[regex]::match($example,'(?<=www.)(.*\n?)').value

ఎలా PowerShell తో Regex తో స్ట్రింగ్ ఉదాహరణకు నుండి “123” తీయడం ఎలా?
$example = 'Powershell123'
[regex]::match($example,'(\d+)').value

ఎలా PowerShell తో Regex తో స్ట్రింగ్ ఉదాహరణకు నుండి “$” (డాలర్ సైన్) సేకరించేందుకు?
$example = 'Powershell`$123'
[regex]::match($example,'(\$)').value

ఎలా మరొక తో ఒక పాత్ర (* .com) స్థానంలో (* .fr) PowerShell తో Regex ఒక స్ట్రింగ్ లో?
$example = 'www.powershell-guru.com'
[regex]::Replace($example, '.com','.fr')

ఎలా PowerShell తో Regex ఒక స్ట్రింగ్ తప్పించుకోవడానికి?
[regex]::Escape('\\server\share')

Up


Memory

ఎలా PowerShell తో చెత్త కలెక్టర్ మెమరీ సమాహారం బలవంతం?
[System.GC]::Collect()
[System.GC]::WaitForPendingFinalizers()

ఎలా PowerShell తో ఒక కంప్యూటర్ యొక్క RAM పరిమాణం పొందడానికి?

Up


Date

ఎలా PowerShell తో ప్రస్తుత తేదీ పొందడానికి?
Get-Date
[Datetime]::Now

ఎలా PowerShell తో వివిధ ఫార్మాట్లలో లో తేదీ ప్రదర్శించడానికి?

ఎలా తేదీ PowerShell తో (స్ట్రింగ్) ఒక తేదీ (తేదీసమయం) మార్చేందుకు?
$datetimeToString = '{0:dd/MM/yy}' -f (Get-Date 30/01/2015)
$datetimeToString = (Get-Date 31/01/2015).ToShortDateString()

ఎలా తేదీ PowerShell తో (తేదీసమయం) ఒక తేదీ (స్ట్రింగ్) మార్చేందుకు?

ఎలా PowerShell తో రెండు కాలాల మధ్య (రోజులు, గంటలు, నిమిషాలు లేదా సెకన్లు సంఖ్య) తేడా లెక్కించేందుకు?
(New-TimeSpan -Start $dateStart -End $dateEnd).Days
(New-TimeSpan -Start $dateStart -End $dateEnd).Hours
(New-TimeSpan -Start $dateStart -End $dateEnd).Minutes
(New-TimeSpan -Start $dateStart -End $dateEnd).Seconds

ఎలా PowerShell తో రెండు తేదీలు పోల్చడానికి?
(Get-Date 2015-01-01) -lt (Get-Date 2015-01-30) # True
(Get-Date 2015-01-01) -gt (Get-Date 2015-01-30) # False

ఎలా PowerShell తో తేదీసమయం తేదీలు యొక్క ఒక అర్రే క్రమం?
$arrayDate | Sort-Object -Property {$_ -as [Datetime]}

ఎలా మొదలు మరియు PowerShell తో ఒక స్టాప్ వాచ్ ఆపడానికి?
$chrono = [Diagnostics.Stopwatch]::StartNew()
$chrono.Stop()
$chrono

ఎలా PowerShell తో వారం ప్రస్తుత రోజు పొందుటకు ఎలా?
(Get-Date).DayOfWeek #Sunday

ఎలా PowerShell తో నిన్న తేదీ పొందడానికి?
(Get-Date).AddDays(-1)

ఎలా PowerShell తో (2015 ఫిబ్రవరిలో) ఒక నెల రోజుల సంఖ్యను పొందడం ఎలా?
[DateTime]::DaysInMonth(2015, 2)

ఎలా PowerShell తో ఉంటే లీపు సంవత్సరం తెలుసు?
[DateTime]::IsLeapYear(2015)

ఎలా PowerShell తో కాలమానాలు జాబితా?
[System.TimeZoneInfo]::GetSystemTimeZones()

Up


Networking

ఎలా (ASCII ఫార్మాట్) ఎన్ కొడ్ మరియు PowerShell తో ఒక URL డీకోడ్?

PowerShell తో స్థానిక నెట్వర్క్ ఆదేశాల సమానతా ఏమిటి?

ఎలా PowerShell తో IP చిరునామాలు పొందడానికి?
Get-NetIPAddress # Windows 8.1 & Windows 2012
Get-NetIPConfiguration # Windows 8.1 & Windows 2012

ఎలా PowerShell తో IP చిరునామా V6 (IPv6) డిసేబుల్?

ఎలా ఒక IP చిరునామా v4 PowerShell తో (IPv4) ధ్రువీకరించడానికి?
if([ipaddress]'10.0.0.1'){'validated'}

ఎలా PowerShell తో బాహ్య IP చిరునామా కనుగొనేందుకు ఎలా?

ఎలా PowerShell తో ఒక IP చిరునామా నుండి హోస్ట్ పేరు కనుగొనేందుకు?
([System.Net.Dns]::GetHostEntry($IP)).Hostname

ఎలా PowerShell తో ఒక అతిధేయ నుండి IP చిరునామా కనుగొనేందుకు ఎలా?
([System.Net.Dns]::GetHostAddresses($computer)).IPAddressToString

ఎలా PowerShell తో ఒక అతిధేయ నుండి FQDN కనుగొనేందుకు?
[System.Net.Dns]::GetHostByName($computer).HostName

ఎలా PowerShell తో (IP, సబ్ నెట్, గేట్వే మరియు DNS) నెట్వర్క్ కాన్ఫిగరేషన్ కనుగొనేందుకు?

ఎలా PowerShell తో MAC చిరునామా కనుగొనేందుకు ఎలా?
Get-CimInstance win32_networkadapterconfiguration | Select-Object -Property Description, Macaddress
Get-WmiObject -Class win32_networkadapterconfiguration | Select-Object -Property Description, Macaddress

ఎలా PowerShell తో ఒక కంప్యూటర్ పింగ్?

ఒక కంప్యూటర్ PowerShell తో ఇంటర్నెట్ కనెక్ట్ ఉంటే తనిఖీ ఎలా?

ఎలా PowerShell తో వెబ్ సైట్ కోసం ఒక whois లుక్అప్ చేయటానికి ఎలా |?
$whois = New-WebServiceProxy 'http://www.webservicex.net/whois.asmx?WSDL'
$whois.GetWhoIs('powershell-guru.com')

ఎలా ప్రజా IP PowerShell తో (జియోలొకేషన్) యొక్క వివరాలను పొందడానికి?

ఒక పోర్ట్ / తెరిచి ఉంది PowerShell తో మూసివేశారు ఉంటే తనిఖీ ఎలా?
New-Object -TypeName Net.Sockets.TcpClient -ArgumentList $computer, 135

ఎలా PowerShell తో tracert చేయటానికి ఎలా |?
Test-NetConnection www.google.com -TraceRoute

ఎలా PowerShell తో హోమ్ నెట్వర్క్ కనెక్షన్ ప్రొఫైల్ పరిష్కరించడానికి?
Get-NetAdapter | Format-Table -Property Name, InterfaceDescription, ifIndex -AutoSize # Windows 8.1
Set-NetConnectionProfile -InterfaceIndex 6 -NetworkCategory Private

ఎలా PowerShell తో TCP పోర్ట్ కనెక్షన్లు చూపించడానికి?
netstat.exe -ano
Get-NetTCPConnection #Windows 8 and 2012

ఎలా PowerShell తో ఒక చిన్న URL లో సుదీర్ఘ URL చిన్నదిగా?
$url = 'www.powershell-guru.com'
$tiny = Invoke-RestMethod -Uri "http://tinyurl.com/api-create.php?url=$url"

ఎలా PowerShell తో ప్రాక్సీ సెట్టింగ్లను పొందడానికి?
Get-ItemProperty -Path HKCU:"Software\Microsoft\Windows\CurrentVersion\Internet Settings"

DNS

ఎలా PowerShell తో స్థానిక కంప్యూటర్లో DNS కేచ్ తనిఖీ ఎలా?
ipconfig.exe /displaydns
Get-DnsClientCache #Windows 8 and 2012

ఎలా PowerShell తో స్థానిక కంప్యూటర్లో DNS కేచ్ క్లియర్?
ipconfig.exe /flushdns
Start-Process -FilePath ipconfig -ArgumentList /flushdns -WindowStyle Hidden
Clear-DnsClientCache #Windows 8 and 2012

ఎలా PowerShell తో రిమోట్ కంప్యూటర్లలో DNS కేచ్ క్లియర్?
Invoke-Command -ScriptBlock {Clear-DnsClientCache} -ComputerName computer01, computer02

ఎలా హోస్ట్స్ PowerShell తో దాఖలు చదవడానికి?
Get-Content -Path 'C:\Windows\system32\drivers\etc\hosts'

Up


Password

ఎలా PowerShell తో యాదృచ్చిక పాస్వర్డ్ ను ఉత్పత్తి?
[Reflection.Assembly]::LoadWithPartialName('System.Web')
[System.Web.Security.Membership]::GeneratePassword(30,2)

ఎలా PowerShell తో రిమోట్ సర్వర్ నిర్వహణాధికారి స్థానిక పాస్వర్డ్ ను మార్చడం ఎలా?
$admin = [ADSI]('WinNT://server01/administrator,user')
$admin.SetPassword($password)
$admin.SetInfo()

ఎలా PowerShell తో యాక్టివ్ డైరెక్టరీ లో ఒక ఖాతా పాస్వర్డ్ ను గడువు తేదీ కనుగొనేందుకు?

Up


Printers

ఎలా PowerShell తో ఒక నిర్దిష్ట సర్వర్ కోసం అన్ని ప్రింటర్లు జాబితా?
Get-WmiObject -Query 'Select * From Win32_Printer' -ComputerName $computer

ఎలా PowerShell తో ఒక నిర్దిష్ట సర్వర్ కోసం అన్ని పోర్ట్సు జాబితా?
Get-WmiObject -Class Win32_TCPIPPrinterPort -Namespace 'root\CIMV2' -ComputerName $computer

ఎలా PowerShell తో ఒక ప్రింటర్ వ్యాఖ్య / స్థానాన్ని మార్చడానికి?

ఎలా PowerShell తో ఒక ప్రింటర్ (అన్ని ఉద్యోగాలు రద్దు) ప్రక్షాళన?
$printer = Get-WmiObject -Class win32_printer -Filter "Name='HP Deskjet 2540 series'"
$printer.CancelAllJobs()

ఎలా PowerShell తో ఒక ప్రింటర్ కోసం ఒక పరీక్షా పేజీని ముద్రించు ఎలా?
$printer = Get-WmiObject -Class win32_printer -Filter "Name='HP Deskjet 2540 series'"
$printer.PrintTestPage()

ఎలా PowerShell తో ప్రింటర్ల ముద్రణ క్యూలు పొందడానికి?

Up


Regedit

Read

ఎలా PowerShell తో రిజిస్ట్రీ దద్దుర్లు జాబితా?
Get-ChildItem -Path Registry::

ఎలా PowerShell తో రిజిస్ట్రీ విలువలు మరియు విలువ రకాల పొందడానికి?

ఎలా PowerShell తో రిజిస్ట్రీ కీ subkeys జాబితా?

ఎలా PowerShell తో పునరావృత విధంగా రిజిస్ట్రీ కీ subkeys జాబితా?
Get-ChildItem -Path 'HKLM:\SYSTEM' -Recurse -ErrorAction SilentlyContinue

ఎలా PowerShell తో ఒక నిర్దిష్ట పేరు మార్గం subkeys కనుగొనేందుకు?
Get-ChildItem -Path 'HKLM:\SOFTWARE' -Include *Plugin* -Recurse -ErrorAction SilentlyContinue

ఎలా PowerShell తో రిజిస్ట్రీ subkeys యొక్క మాత్రమే పేరు తిరిగి?
(Get-ChildItem -Path 'HKLM:\SYSTEM').Name # Return HKEY_LOCAL_MACHINE\SYSTEM\ControlSet
Get-ChildItem -Path 'HKLM:\SYSTEM' -Name # Return ControlSet

ఎలా PowerShell తో రిజిస్ట్రీ విలువలు జాబితాకు?
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'

ఎలా PowerShell తో ఒక నిర్దిష్ట రిజిస్ట్రీ విలువ చదవడానికి?
(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ProductName

ఎలా PowerShell తో రిమోట్ కంప్యూటర్ లో ఒక నిర్దిష్ట రిజిస్ట్రీ విలువ చదవడానికి?

Write

ఎలా PowerShell తో ఒక కొత్త రిజిస్ట్రీ కీ సృష్టించడానికి?
New-Item -Path 'HKCU:\Software\MyApplication'

ఎలా PowerShell తో ఒక రిజిస్ట్రీ విలువ సృష్టించడానికి?
New-ItemProperty -Path 'HKCU:\Software\MyApplication' -Name 'Version' -Value '1.0'

ఎలా PowerShell తో ఇప్పటికే ఉన్న రిజిస్ట్రీ విలువ సవరించడానికి?
Set-ItemProperty -Path 'HKCU:\Software\MyApplication' -Name 'Version' -Value '2.0'

Delete

ఎలా PowerShell తో ఒక రిజిస్ట్రీ విలువ తొలగించడానికి ఎలా?
Remove-ItemProperty -Path 'HKCU:\Software\MyApplication' -Name 'Version'

ఎలా PowerShell తో ఒక రిజిస్ట్రీ కీ తొలగించడానికి ఎలా?
Remove-Item -Path 'HKCU:\Software\MyApplication' -Force

Test

ఒక రిజిస్ట్రీ కీ PowerShell తో ఉందని ఎలా పరీక్షించడానికి?
Test-Path -Path 'HKCU:\Software\MyApplication'

ఒక రిజిస్ట్రీ విలువ PowerShell తో ఉందని ఎలా పరీక్షించడానికి?
(Get-Item -Path 'HKCU:\Software\MyApplication').GetValueNames() -contains 'Version'

Up


Strings

ఎలా PowerShell తో ఒక స్ట్రింగ్ ప్రారంభంలో నుండి తెల్లని ఖాళీ అక్షరాలు తొలగించడానికి ఎలా?
$string = ' PowershellGuru'
$string = $string.TrimStart()

ఎలా PowerShell తో ఒక స్ట్రింగ్ ముగింపు నుండి తెల్లని స్థలం అక్షరాలు తొలగించడానికి ఎలా?
$string = 'PowershellGuru '
$string = $string.TrimEnd()

ఎలా PowerShell తో ఒక స్ట్రింగ్ యొక్క తెల్లని ఖాళీ అక్షరాలు (ప్రారంభం మరియు ముగింపు) తొలగించాలని?
$string = ' PowershellGuru '
$string = $string.Trim()

ఎలా PowerShell తో ఎగువ కేసు ఒక స్ట్రింగ్ మార్చడానికి?
$string = 'powershellguru'
$string = $string.ToUpper()

ఎలా PowerShell తో తక్కువ కేసు స్ట్రింగ్ మార్చడానికి?
$string = 'POWERSHELLGURU'
$string = $string.ToLower()

ఎలా PowerShell తో “PowershellGuru” స్ట్రింగ్ యొక్క substring “PowerShell” ఎంచుకోండి ఎలా?
$string.Substring(0,10)

ఎలా PowerShell తో “PowershellGuru” స్ట్రింగ్ యొక్క substring “గురు” ఎంచుకోండి ఎలా?
$string.Substring(10)

ఎలా PowerShell తో “Powershell123Guru” సంఖ్య “123” ఎంచుకోండి ఎలా?
$string = 'Powershell123Guru'
[regex]::match($string,'(\d+)').value

ఎలా PowerShell తో స్ట్రింగ్ “PowershellGuru” యొక్క “గురు” సున్నా ఆధారిత ఇండెక్స్ పొందడానికి?
$string.IndexOf('Guru') # 10

ఎలా ఒక స్ట్రింగ్ PowerShell తో శూన్యం లేదా ఖాళీగా ఉంటే తనిఖీ ఎలా?
$string = $null
$string = ''
[string]::IsNullOrEmpty($string)

ఒక స్ట్రింగ్ శూన్య, ఖాళీ, లేదా మాత్రమే PowerShell తో తెల్లని ఖాళీ పాత్రలను కలిగి ఉంటే తనిఖీ ఎలా?
$string = $null
$string = ''
$string = ' '
[string]::IsNullOrWhiteSpace($string)

ఒక స్ట్రింగ్ PowerShell తో ఒక నిర్దిష్ట లేఖ కలిగి ఉంటే తనిఖీ ఎలా?
$string = 'PowershellGuru'
$string.Contains('s')
[regex]::match($string,'s').Success

ఎలా PowerShell తో ఒక స్ట్రింగ్ యొక్క పొడవు తిరిగి ఎలా?
$string.Length

ఎలా PowerShell తో రెండు స్ట్రింగ్ concatenate కు?

ఎలా “[]” ఒకటి లేదా అనేక పరిధులు కోసం మ్యాచ్ PowerShell తో ఒక స్ట్రింగ్ లో?
$string = '[PowershellGuru]'
$string -match '\[' # Only 1
$string -match '\[(.*)\]' # Several

ఎలా “()” PowerShell తో ఒక స్ట్రింగ్ లో ఒకటి లేదా అనేక వాక్యాల కోసం మ్యాచ్?
$string = '(PowershellGuru)'
$string -match '\(' # Only 1
$string -match '\((.*)\)' # Several

ఎలా “{}” PowerShell తో ఒక స్ట్రింగ్ లో ఒకటి లేదా ఎక్కువ కర్లీ బ్రాకెట్స్ కోసం మ్యాచ్?
$string = '{PowershellGuru}'
$string -match '\{' # Only 1
$string -match '\{(.*)\}' # Several

ఒకటి లేదా అనేక బ్రాకెట్లు కోసం సరిపోలడం ఎలా “; & gt; & lt” PowerShell తో ఒక స్ట్రింగ్ లో?
$string = ''
$string -match '\<' # Only 1
$string -match "\<(.*)\>" # Several

ఎలా PowerShell తో ఒక స్ట్రింగ్ లో ఏ చిన్న అక్షరాలు (ABC) మ్యాచ్?
$string = 'POWERSHELLGURU'
$string -cmatch "^[a-z]*$" #False

ఎలా PowerShell తో ఒక స్ట్రింగ్ లో ఏ upperletters (ABC) మ్యాచ్?
$string = 'powershellguru'
$string -cmatch "^[A-Z]*$" #False

ఎలా PowerShell తో ఒక స్ట్రింగ్ లో “[p” (p తక్కువ కేసు) మ్యాచ్?
$string = '[powershellGuru]'
$string -cmatch '\[[a-z]\w+' #True

ఎలా PowerShell తో ఒక స్ట్రింగ్ లో “[P” (పి అప్పర్ కేస్) మ్యాచ్?
$string = '[PowershellGuru]'
$string -cmatch '\[[A-Z]\w+' #True

ఎలా PowerShell తో మరొక లైన్ తో లైన్ భర్తీ ఎలా?
$a = 'Line A'
$b = 'Line B'
$a = $a -replace $a, $b

ఎలా PowerShell తో ఒక స్ట్రింగ్ (శాతం) ఒక విభజన ఆపరేషన్ మార్చేందుకు?
(1/2).ToString('P')

ఎలా PowerShell తో సంఖ్యలు తీగలను కలిగి క్రమం?

ఎలా PowerShell తో ఒక వాక్యం యొక్క చివరి పదం ఎంచుకోవడానికి?
$sentence = 'My name is Test Powershell'
$sentence.Split(' ')[-1] # Returns Powershell

ఎలా PowerShell తో వాక్యం యొక్క అతిపెద్ద పదం పొందడానికి?
$sentence = 'My name is Test Powershell'
$sentence.Split(' ') | Sort-Object -Property Length | Select-Object -Last 1 # Returns Powershell

ఎలా ఒక స్ట్రింగ్ PowerShell తో ఒక వాక్యం లోపల ఉంది ఎన్నిసార్లు లెక్కించడానికి?
$sentence = 'test test test Powershell'
[regex]::Matches($sentence, 'test').Count # Returns 3

ఎలా PowerShell తో ఒక పాత్ర శ్రేణి ఒక స్ట్రింగ్ లో ప్రతి పాత్ర కాపీ?

ఎలా PowerShell తో ఒక స్ట్రింగ్ యొక్క అప్పర్ కేస్ మొదటి అక్షరం మార్చేందుకు?

ఎలా ప్యాడ్ (ఎడమ లేదా కుడి) PowerShell తో ఒక స్ట్రింగ్?

ఎలా ఎన్కోడ్ మరియు PowerShell తో నివేదించండి Base64- ఒక స్ట్రింగ్ డీకోడ్?

ఎలా బైనరీ మరియు PowerShell తో బైనరీ నుండి సంఖ్య మార్చేందుకు?

ఎలా PowerShell తో ఒక మార్గంలో మాత్రమే గత పేరెంట్ ఫోల్డర్ తిరిగి?

ఎలా PowerShell తో ఒక మార్గంలో మాత్రమే గత అంశాన్ని తిరిగి?

Up


Math

ఎలా PowerShell తో System.Math తరగతి పద్ధతులు జాబితా?
[System.Math] | Get-Member -Static -MemberType Method

ఎలా PowerShell తో సంపూర్ణ విలువ తిరిగి?
[Math]::Abs(-12) #Returns 12
[Math]::Abs(-12.5) # Returns 12.5

ఎలా దీని సైన్ PowerShell తో పేర్కొన్న సంఖ్య కోణం తిరిగి?
[Math]::ASin(1) #Returns 1,5707963267949

ఎలా PowerShell తో పైకప్పు తిరిగి?
[Math]::Ceiling(1.4) #Returns 2
[Math]::Ceiling(1.9) #Returns 2

ఎలా PowerShell తో ఫ్లోర్ తిరిగి?
[Math]::Floor(1.4) #Returns 1
[Math]::Floor(1.9) #Returns 1

ఎలా PowerShell తో ఒక నిర్దిష్ట సహజ (బేస్ ఈ) సంవర్గమానం తిరిగి?
[Math]::Log(4) #Returns 1,38629436111989

ఎలా PowerShell తో ఒక పేర్కొన్న సంఖ్యలో బేస్ 10 సంవర్గమానం తిరిగి?
[Math]::Log10(4) #Returns 0,602059991327962

ఎలా PowerShell తో రెండు విలువలు గరిష్ట తిరిగి?
[Math]::Max(2,4) #Returns 4
[Math]::Max(-2,-4) #Returns -2

ఎలా PowerShell తో రెండు విలువలు కనీస తిరిగి?
[Math]::Min(2,4) #Returns 2
[Math]::Max(-2,-4) #Returns -4

ఎలా PowerShell తో పేర్కొన్న ఘాతానికి ఒక సంఖ్య తిరిగి?
[Math]::Pow(2,4) #Returns 16

ఎలా PowerShell తో సమీప సమగ్ర విలువ ఒక దశాంశ విలువ తిరిగి?
[Math]::Round(3.111,2) #Returns 3,11
[Math]::Round(3.999,2) #Returns 4

ఎలా PowerShell తో ఒక పేర్కొన్న దశాంశ సంఖ్య యొక్క అంతర్భాగం తిరిగి?
[Math]::Truncate(3.111) #Returns 3
[Math]::Truncate(3.999) #Returns 3

ఎలా PowerShell తో ఒక పేర్కొన్న సంఖ్య యొక్క వర్గమూలం తిరిగి?
[Math]::Sqrt(16) #Returns 4

ఎలా PowerShell తో PI స్థిరంగా తిరిగి?
[Math]::Pi #Returns 3,14159265358979

ఎలా PowerShell తో సహజ సంవర్గమాన బేస్ (స్థిరాంకం e) తిరిగి?
[Math]::E #Returns 2,71828182845905

ఎలా అనేక సరి లేదా బేసి PowerShell తో ఉంటే తనిఖీ ఎలా?
[bool]($number%2)

Up


Hashtables

ఎలా PowerShell తో ఒక ఖాళీ హేష్ టెబుల్ సృష్టించడానికి?
$hashtable = @{}
$hashtable = New-Object -TypeName System.Collections.Hashtable

ఎలా PowerShell తో అంశాలను ఒక హేష్ టెబుల్ సృష్టించడానికి?

ఎలా PowerShell తో వస్తువులను కీ / పేరు (ఆదేశించింది నిఘంటువు) ద్వారా క్రమబద్ధీకరించబడింది ఒక హేష్ టెబుల్ సృష్టించడానికి?

ఎలా PowerShell తో ఒక హేష్ టెబుల్ అంశాలు (కీ-విలువ జంట) జోడించడానికి?
$hashtable.Add('Key3', 'Value3')

ఎలా PowerShell తో ఒక హేష్ టెబుల్ ఒక నిర్దిష్ట విలువ పొందడానికి?
$hashtable.Key1
$hashtable.Get_Item('Key1')

ఎలా PowerShell తో ఒక హేష్ టెబుల్ కనీస విలువ పొందడానికి?

ఎలా PowerShell తో ఒక హేష్ టెబుల్ యొక్క గరిష్ట విలువ పొందడానికి?

ఎలా PowerShell తో ఒక హేష్ టెబుల్ అంశాలను సవరించడానికి?
$hashtable.Set_Item('Key1', 'Value1Updated')

ఎలా PowerShell తో ఒక హేష్ టెబుల్ అంశాలను తొలగించడానికి ఎలా?
$hashtable.Remove('Key1')

ఎలా PowerShell తో ఒక హేష్ టెబుల్ క్లియర్?
$hashtable.Clear()

ఎలా PowerShell తో ఒక హేష్ టెబుల్ ఒక నిర్దిష్ట కీ / విలువ ఉనికిని తనిఖీ ఎలా?
$hashtable.ContainsKey('Key3')
$hashtable.ContainsValue('Value3')

ఎలా PowerShell తో ఒక హేష్ టెబుల్ కీ / విలువ క్రమం?
$hashtable.GetEnumerator() | Sort-Object -Property Name
$hashtable.GetEnumerator() | Sort-Object -Property Value -Descending

Up


Arrays

ఎలా PowerShell తో ఒక ఖాళీ శ్రేణిని సృష్టించడానికి?
$array = @()
$array = [System.Collections.ArrayList]@()

ఎలా PowerShell తో వస్తువులను వ్యూహం సృష్టించడానికి?
$array = @('A', 'B', 'C')
$array = 'A', 'B', 'C'
$array = 'a,b,c'.Split(',')
$array = .{$args} a b c
$array = echo a b c

ఎలా PowerShell తో వ్యూహం అంశాలను జోడించాలి?
$array += 'D'
[void]$array.Add('D')

ఎలా PowerShell తో ఒక శ్రేణి ఒక అంశం సవరించడానికి?
$array[0] = 'Z' # 1st item[0]

ఎలా PowerShell తో వ్యూహం యొక్క పరిమాణం తనిఖీ ఎలా?
$array = 'A', 'B', 'C'
$array.Length # Returns 3

ఎలా PowerShell తో ఒక శ్రేణి లో ఒక అంశం / కొన్ని / అన్ని అంశాలను తిరిగి?
$array = @('A', 'B', 'C')
$array[0] # One item (A)
$array[0] + $array[2] # Several items (A,C)
$array # All items (A,B,C)

ఎలా PowerShell తో ఒక శ్రేణి ఖాళీ అంశాలను తొలగించడానికి ఎలా?
$array = @('A', 'B', 'C', '')
$array = $array.Split('',[System.StringSplitOptions]::RemoveEmptyEntries) | Sort-Object # A,B,C

ఒక అంశం PowerShell తో ఒక శ్రేణి లో ఉనికిలో ఉంటే తనిఖీ ఎలా?
$array = @('A', 'B', 'C')
'A' | ForEach-Object -Process {$array.Contains($_)} # Returns True
'D' | ForEach-Object -Process {$array.Contains($_)} # Returns False

ఎలా PowerShell తో ఒక శ్రేణి ఒక అంశం ఇండెక్స్ సంఖ్య కనుగొనేందుకు?
$array = @('A', 'B', 'C')
[array]::IndexOf($array,'A') # Returns 0

ఎలా PowerShell తో ఒక శ్రేణి అంశాలను క్రమాన్ని రివర్స్?
$array = @('A', 'B', 'C')
[array]::Reverse($array) # C,B,A

ఎలా PowerShell తో వ్యూహం నుండి రాండమ్ అంశం ఉత్పత్తి?
$array | Get-Random

ఎలా PowerShell తో మార్గం అవరోహణ / ఆరోహణ ఒక అర్రే క్రమం?
$array = @('A', 'B', 'C')
$array | Sort-Object # A,B,C
$array | Sort-Object -Descending # C,B,A

ఎలా PowerShell తో వ్యూహంలో అంశాల సంఖ్యను లెక్కించడానికి?
$array.Count

ఎలా PowerShell తో antoher కు వ్యూహం జోడించడానికి?
$array1 = 'A', 'B', 'C'
$array2 = 'D', 'E', 'F'
$array3 = $array1 + $array2 # A,B,C,D,E,F

ఎలా PowerShell తో వ్యూహం నుండి నకిలీలను కనుగొనడంలో?
$array = 'A', 'B', 'C', 'C'
($array | Group-Object | Where-Object -FilterScript {$_.Count -gt 1}).Values # Returns C

ఎలా PowerShell తో వ్యూహం నుండి నకిలీలను తొలగించడానికి ఎలా?
$array = 'A', 'B', 'C', 'C'
$array = $array | Select-Object -Unique
$array # Returns A,B,C

ఎలా ఒక ఉపసర్గ తో మొదలు (“user01”, “user02”, …, “user10”) PowerShell తో వస్తువులను వ్యూహం సృష్టించడానికి?
$array = 1..10 | ForEach-Object -Process { "user$_" }

Up


ACL

ఎలా PowerShell తో ఒక యూజర్ యొక్క ACL జాబితా?
(Get-Acl -Path "AD:\$dn").Access

ఎలా PowerShell తో ఫోల్డర్ ACL జాబితా?