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