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