Get-EventLog -LogName Application -Newest 50
hostname
Get-ADObject -LDAPFilter '(objectCategory=computer)'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADOrganizationalUnit -Filter *
Get-ADGroupMember 'Domain Admins'
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Restart-Service -Name 'WinRM'
Get-ADServiceAccount -Filter * -Properties *
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-SmbSession
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Content C:\\Scripts\\deploy.ps1
Get-ADUser -Filter 'Enabled -eq True'
Get-ScheduledTask
Get-SmbShare
Get-Process -Name powershell
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Service -Name WinRM | Format-List *
Get-SmbSession
Get-ADComputer -Filter *
Import-Module ActiveDirectory
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Start-Sleep -Seconds 10
Get-Process -Name powershell
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Service | Where-Object {.Status -eq 'Running'}
Write-Host 'Operation terminée'
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-NTFSAccess -Path C:\\SYSVOL
whoami
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Content C:\\Scripts\\deploy.ps1
Get-ScheduledTask
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADOrganizationalUnit -Filter *
Get-Process | Where-Object {.CPU -gt 100}
Restart-Service -Name 'WinRM'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
whoami
Get-SmbOpenFile
cls
Get-SmbOpenFile
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Process -Name powershell
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-NTFSAccess -Path C:\\SYSVOL
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADServiceAccount -Filter * -Properties *
Test-Connection -ComputerName dc01.novatech.local
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Test-NetConnection google.com
ipconfig /all
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-SmbShare
Get-NetIPAddress
cls
Get-SmbSession
Get-ADPrincipalGroupMembership svc_backup
Get-Content C:\\Scripts\\deploy.ps1
Test-NetConnection google.com
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Remove-Item C:\\Temp\\old_log.log -Force
Set-Location C:\\Temp
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Credential
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Process -Name powershell
Import-Module ActiveDirectory
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADOrganizationalUnit -Filter *
Get-Service -Name WinRM | Format-List *
Get-Credential
Get-Service -Name WinRM | Format-List *
Restart-Service -Name 'WinRM'
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Import-Module ActiveDirectory
Get-NetIPAddress
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbShare
Set-Location C:\\Temp
Get-EventLog -LogName System -Newest 50
Get-ADGroup -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Date
Get-NetIPAddress
Get-NetFirewallProfile
Get-ADComputer -Filter *
Get-ADGroupMember 'Domain Admins'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
