Describe the bug
New to the tool, but whenever i try to run a PIM elevation to a certain PIMable role, I get this unhandled exception error related to MaxDuration not being found. This PIMable role has a max duration of 2 hours, but the powershell tool seems to think it's 8. Even if i manually set it to 2, it still errors out
I've reinstall the module, reinstalled Graph and I get the same behavior.
Error Details
If applicable, paste the full error message:
#See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Management.Automation.CmdletInvocationException: The property 'MaxDuration' cannot be found on this object. Verify that the property exists.
---> System.Management.Automation.PropertyNotFoundException: The property 'MaxDuration' cannot be found on this object. Verify that the property exists.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.CommandProcessorBase.Complete()
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
at System.Management.Automation.ScriptBlock.InvokeAsDelegateHelper(Object dollarUnder, Object dollarThis, Object[] args)
at lambda_method1130(Closure, Object, EventArgs)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Private.CoreLib.dll
----------------------------------------
pwsh
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\pwsh.dll
----------------------------------------
System.Runtime
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.dll
----------------------------------------
Microsoft.PowerShell.ConsoleHost
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.ConsoleHost.dll
----------------------------------------
System.Management.Automation
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\System.Management.Automation.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.Thread.dll
----------------------------------------
System.Diagnostics.Process
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.Process.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.InteropServices.dll
----------------------------------------
System.Collections
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Collections.dll
----------------------------------------
System.Threading
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.dll
----------------------------------------
System.Linq.Expressions
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Linq.Expressions.dll
----------------------------------------
System.Runtime.Numerics
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.Numerics.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Private.Xml.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Text.Encoding.Extensions.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Collections.Specialized.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Collections.Concurrent.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.DirectoryServices.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.ComponentModel.Primitives.dll
----------------------------------------
Microsoft.PowerShell.CoreCLR.Eventing
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.CoreCLR.Eventing.dll
----------------------------------------
System.Management
Assembly Version: 9.0.0.10
Location: C:\Program Files\PowerShell\7\System.Management.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.Win32.Primitives.dll
----------------------------------------
System.Private.Uri
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Private.Uri.dll
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Text.RegularExpressions.dll
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.Win32.Registry.dll
----------------------------------------
System.Linq
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Linq.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Location: C:\Program Files\PowerShell\7\Newtonsoft.Json.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.ComponentModel.TypeConverter.dll
----------------------------------------
Microsoft.Management.Infrastructure
Assembly Version: 1.0.0.0
Location: C:\Program Files\PowerShell\7\microsoft.management.infrastructure.dll
----------------------------------------
System.ObjectModel
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.ObjectModel.dll
----------------------------------------
System.Net.Mail
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Mail.dll
----------------------------------------
System.Net.NetworkInformation
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.NetworkInformation.dll
----------------------------------------
System.Net.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Primitives.dll
----------------------------------------
System.Security.AccessControl
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.AccessControl.dll
----------------------------------------
System.Security.Cryptography
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.Cryptography.dll
----------------------------------------
System.Runtime.Serialization.Formatters
Assembly Version: 8.1.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.Serialization.Formatters.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Runtime.Serialization.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.Serialization.Primitives.dll
----------------------------------------
System.Data.Common
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Data.Common.dll
----------------------------------------
System.ComponentModel
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.ComponentModel.dll
----------------------------------------
System.Reflection.Emit.Lightweight
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Reflection.Primitives.dll
----------------------------------------
System.Console
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Console.dll
----------------------------------------
System.Security.Principal.Windows
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.Claims.dll
----------------------------------------
System.Memory
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Memory.dll
----------------------------------------
Microsoft.ApplicationInsights
Assembly Version: 2.22.0.997
Location: C:\Program Files\PowerShell\7\Microsoft.ApplicationInsights.dll
----------------------------------------
netstandard
Assembly Version: 2.1.0.0
Location: C:\Program Files\PowerShell\7\netstandard.dll
----------------------------------------
System.Diagnostics.DiagnosticSource
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.DiagnosticSource.dll
----------------------------------------
System.IO.MemoryMappedFiles
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.MemoryMappedFiles.dll
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.Tracing.dll
----------------------------------------
System.Private.Xml.Linq
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Private.Xml.Linq.dll
----------------------------------------
System.IO.Pipes
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.Pipes.dll
----------------------------------------
System.Text.Encoding.CodePages
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Text.Encoding.CodePages.dll
----------------------------------------
System.Threading.Tasks.Parallel
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.Tasks.Parallel.dll
----------------------------------------
System.IO.FileSystem.AccessControl
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.FileSystem.AccessControl.dll
----------------------------------------
System.IO.FileSystem.DriveInfo
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.FileSystem.DriveInfo.dll
----------------------------------------
getfilesiginforedistwrapper
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerShell\7\getfilesiginforedistwrapper.dll
----------------------------------------
System.Xml.XDocument
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Xml.XDocument.dll
----------------------------------------
System.Security.Permissions
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.Permissions.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.Loader.dll
----------------------------------------
System.Threading.Overlapped
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.Overlapped.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Location:
----------------------------------------
System.Numerics.Vectors
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Numerics.Vectors.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.ThreadPool.dll
----------------------------------------
Microsoft.PowerShell.PSReadLine2
Assembly Version: 2.3.6.0
Location: C:\program files\powershell\7\Modules\PSReadLine\Microsoft.PowerShell.PSReadLine2.dll
----------------------------------------
mscorlib
Assembly Version: 4.0.0.0
Location: C:\Program Files\PowerShell\7\mscorlib.dll
----------------------------------------
Microsoft.PowerShell.Commands.Management
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.Commands.Management.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Location: C:\Program Files\PowerShell\7\System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Location: C:\Program Files\PowerShell\7\System.Core.dll
----------------------------------------
Microsoft.PowerShell.PSReadLine.Polyfiller
Assembly Version: 1.0.0.0
Location: C:\program files\powershell\7\Modules\PSReadLine\net6plus\Microsoft.PowerShell.PSReadLine.Polyfiller.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
System.ServiceProcess.ServiceController
Assembly Version: 9.0.0.10
Location: C:\Program Files\PowerShell\7\System.ServiceProcess.ServiceController.dll
----------------------------------------
System.Runtime.Intrinsics
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Runtime.Intrinsics.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Collections.NonGeneric.dll
----------------------------------------
System.Net.Requests
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Requests.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Drawing.Primitives.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Drawing.Common.dll
----------------------------------------
System.Private.Windows.Core
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Private.Windows.Core.dll
----------------------------------------
Microsoft.PowerShell.Commands.Utility
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.Commands.Utility.dll
----------------------------------------
Microsoft.PowerShell.MarkdownRender
Assembly Version: 7.2.1.0
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.MarkdownRender.dll
----------------------------------------
System.Text.Json
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Text.Json.dll
----------------------------------------
System.Net.Http
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Http.dll
----------------------------------------
Microsoft.PackageManagement
Assembly Version: 3.0.0.1
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.dll
----------------------------------------
Microsoft.PowerShell.PackageManagement
Assembly Version: 3.0.0.0
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PowerShell.PackageManagement.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.FileVersionInfo.dll
----------------------------------------
Microsoft.PackageManagement.NuGetProvider
Assembly Version: 3.0.0.2
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
----------------------------------------
Microsoft.PackageManagement.ArchiverProviders
Assembly Version: 3.0.0.0
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
----------------------------------------
Microsoft.PackageManagement.MetaProvider.PowerShell
Assembly Version: 3.0.0.0
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
----------------------------------------
Microsoft.PackageManagement.CoreProviders
Assembly Version: 3.0.0.0
Location: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
----------------------------------------
Microsoft.PowerShell.Commands.Diagnostics
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.Commands.Diagnostics.dll
----------------------------------------
System.Diagnostics.PerformanceCounter
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.PerformanceCounter.dll
----------------------------------------
System.Reflection.Emit
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Reflection.Emit.dll
----------------------------------------
Microsoft.PowerShell.Security
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.PowerShell.Security.dll
----------------------------------------
Microsoft.WSMan.Management
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.WSMan.Management.dll
----------------------------------------
Microsoft.WSMan.Runtime
Assembly Version: 7.5.0.500
Location: C:\Program Files\PowerShell\7\Microsoft.WSMan.Runtime.dll
----------------------------------------
IArchiver_proxy_1
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IPackageProvider_proxy_2
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IPackageProvider_proxy_3
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IDownloader_proxy_4
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IMetaProvider_proxy_5
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IRequest_proxy_6
Assembly Version: 0.0.0.0
Location:
----------------------------------------
Request_proxy_7
Assembly Version: 0.0.0.0
Location:
----------------------------------------
NuGetRequest_proxy_8
Assembly Version: 0.0.0.0
Location:
----------------------------------------
Request_proxy_9
Assembly Version: 0.0.0.0
Location:
----------------------------------------
Request_proxy_10
Assembly Version: 0.0.0.0
Location:
----------------------------------------
PsRequest_proxy_11
Assembly Version: 0.0.0.0
Location:
----------------------------------------
BootstrapRequest_proxy_12
Assembly Version: 0.0.0.0
Location:
----------------------------------------
BootstrapRequest_proxy_13
Assembly Version: 0.0.0.0
Location:
----------------------------------------
System.Net.Security
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Security.dll
----------------------------------------
Microsoft.CodeAnalysis
Assembly Version: 4.11.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.CodeAnalysis.dll
----------------------------------------
Microsoft.CodeAnalysis.CSharp
Assembly Version: 4.11.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.CodeAnalysis.CSharp.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Collections.Immutable.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Reflection.Metadata.dll
----------------------------------------
System.Globalization
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Globalization.dll
----------------------------------------
m1czux30.thr
Assembly Version: 0.0.0.0
Location:
----------------------------------------
0psb4jll.qs5
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IPackageProvider_proxy_14
Assembly Version: 0.0.0.0
Location:
----------------------------------------
PsRequest_proxy_15
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IHostApi_proxy_16
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IHostApi_proxy_17
Assembly Version: 0.0.0.0
Location:
----------------------------------------
PsRequest_proxy_18
Assembly Version: 0.0.0.0
Location:
----------------------------------------
PsRequest_proxy_19
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IHostApi_proxy_20
Assembly Version: 0.0.0.0
Location:
----------------------------------------
PsRequest_proxy_21
Assembly Version: 0.0.0.0
Location:
----------------------------------------
IRequest_proxy_22
Assembly Version: 0.0.0.0
Location:
----------------------------------------
NuGetRequest_proxy_23
Assembly Version: 0.0.0.0
Location:
----------------------------------------
System.Linq.Parallel
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Linq.Parallel.dll
----------------------------------------
System.Net.Sockets
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Sockets.dll
----------------------------------------
System.Net.NameResolution
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.NameResolution.dll
----------------------------------------
Microsoft.CSharp
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.CSharp.dll
----------------------------------------
System.IO.Compression
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.Compression.dll
----------------------------------------
System.IO.Compression.ZipFile
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.Compression.ZipFile.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Diagnostics.StackTrace.dll
----------------------------------------
Microsoft.CertificateServices.PKIClient.Cmdlets
Assembly Version: 10.0.0.0
Location: C:\WINDOWS\Microsoft.NET\assembly\GAC_64\Microsoft.CertificateServices.PKIClient.Cmdlets\v4.0_10.0.0.0__31bf3856ad364e35\Microsoft.CertificateServices.PKIClient.Cmdlets.dll
----------------------------------------
Microsoft.Graph.Authentication
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Microsoft.Graph.Authentication.dll
----------------------------------------
Microsoft.Graph.Authentication.Core
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Microsoft.Graph.Authentication.Core.dll
----------------------------------------
Azure.Core
Assembly Version: 1.50.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Core\Azure.Core.dll
----------------------------------------
System.ClientModel
Assembly Version: 1.8.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\System.ClientModel.dll
----------------------------------------
System.Threading.Tasks.Extensions
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.Tasks.Extensions.dll
----------------------------------------
Microsoft.Graph.Identity.DirectoryManagement.private
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Identity.DirectoryManagement\2.34.0\bin\Microsoft.Graph.Identity.DirectoryManagement.private.dll
----------------------------------------
System.Net.WebProxy
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.WebProxy.dll
----------------------------------------
Microsoft.Graph.Users.private
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Users\2.34.0\bin\Microsoft.Graph.Users.private.dll
----------------------------------------
Microsoft.Graph.Groups.private
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Groups\2.34.0\bin\Microsoft.Graph.Groups.private.dll
----------------------------------------
System.Net.Quic
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Net.Quic.dll
----------------------------------------
Microsoft.Graph.Identity.Governance.private
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Identity.Governance\2.34.0\bin\Microsoft.Graph.Identity.Governance.private.dll
----------------------------------------
Microsoft.Azure.PowerShell.AssemblyLoading
Assembly Version: 5.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.AssemblyLoading.dll
----------------------------------------
Microsoft.Azure.PowerShell.Authentication.Abstractions
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Authentication.Abstractions.dll
----------------------------------------
Microsoft.Azure.PowerShell.Authentication
Assembly Version: 5.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Authentication.dll
----------------------------------------
Microsoft.Azure.PowerShell.Authenticators
Assembly Version: 5.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Authenticators.dll
----------------------------------------
Microsoft.Azure.PowerShell.Authentication.ResourceManager
Assembly Version: 0.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Authorization
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Authorization.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Compute
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Compute.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Graph.Rbac
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Monitor
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Monitor.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Network
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Network.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.PolicyInsights
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.ResourceManager
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll
----------------------------------------
Microsoft.Azure.PowerShell.Common
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Common.dll
----------------------------------------
Microsoft.Azure.PowerShell.Storage
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Storage.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Storage.Management
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Storage.Management.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.KeyVault
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.KeyVault.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Websites
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Websites.dll
----------------------------------------
Hyak.Common
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Hyak.Common.dll
----------------------------------------
Microsoft.Azure.Common
Assembly Version: 2.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.Common.dll
----------------------------------------
Microsoft.Rest.ClientRuntime
Assembly Version: 2.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Rest.ClientRuntime.dll
----------------------------------------
Microsoft.Rest.ClientRuntime.Azure
Assembly Version: 3.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Rest.ClientRuntime.Azure.dll
----------------------------------------
Microsoft.WindowsAzure.Storage
Assembly Version: 9.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.WindowsAzure.Storage.dll
----------------------------------------
Microsoft.Azure.PowerShell.Clients.Aks
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Clients.Aks.dll
----------------------------------------
Microsoft.Azure.PowerShell.Strategies
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Strategies.dll
----------------------------------------
Microsoft.Azure.PowerShell.Common.Share
Assembly Version: 1.0.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Common.Share.dll
----------------------------------------
FuzzySharp
Assembly Version: 1.0.4.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\FuzzySharp.dll
----------------------------------------
Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext
Assembly Version: 5.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll
----------------------------------------
Microsoft.Azure.PowerShell.Cmdlets.Accounts
Assembly Version: 5.3.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll
----------------------------------------
Microsoft.Identity.Client.Extensions.Msal
Assembly Version: 4.65.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\StartupScripts\..\lib\netstandard2.0\Microsoft.Identity.Client.Extensions.Msal.dll
----------------------------------------
System.IO.FileSystem.Watcher
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.IO.FileSystem.Watcher.dll
----------------------------------------
System.Security.Cryptography.ProtectedData
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Security.Cryptography.ProtectedData.dll
----------------------------------------
Azure.Core
Assembly Version: 1.45.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\StartupScripts\..\lib\netstandard2.0\Azure.Core.dll
----------------------------------------
Azure.Identity
Assembly Version: 1.13.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Az.Accounts\5.3.0\StartupScripts\..\lib\netstandard2.0\Azure.Identity.dll
----------------------------------------
Microsoft.Graph.Identity.SignIns.private
Assembly Version: 2.34.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Identity.SignIns\2.34.0\bin\Microsoft.Graph.Identity.SignIns.private.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Drawing.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Windows.Forms.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Location: C:\Program Files\PowerShell\7\Accessibility.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Location: C:\Program Files\PowerShell\7\System.Web.dll
----------------------------------------
Azure.Identity
Assembly Version: 1.17.1.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Azure.Identity.dll
----------------------------------------
Microsoft.Identity.Client
Assembly Version: 4.78.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Core\Microsoft.Identity.Client.dll
----------------------------------------
Microsoft.Identity.Client.Extensions.Msal
Assembly Version: 4.78.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Core\Microsoft.Identity.Client.Extensions.Msal.dll
----------------------------------------
Azure.Identity.Broker
Assembly Version: 1.3.1.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Azure.Identity.Broker.dll
----------------------------------------
Microsoft.IdentityModel.Abstractions
Assembly Version: 8.15.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.IdentityModel.Abstractions.dll
----------------------------------------
Microsoft.Identity.Client.Broker
Assembly Version: 4.78.0.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.Identity.Client.Broker.dll
----------------------------------------
System.Buffers
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Buffers.dll
----------------------------------------
Microsoft.Identity.Client.NativeInterop
Assembly Version: 0.19.4.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.Identity.Client.NativeInterop.dll
----------------------------------------
System.Text.Encodings.Web
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Text.Encodings.Web.dll
----------------------------------------
Microsoft.Graph.Core
Assembly Version: 3.2.5.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Core\Microsoft.Graph.Core.dll
----------------------------------------
Microsoft.Kiota.Authentication.Azure
Assembly Version: 1.21.1.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.Kiota.Authentication.Azure.dll
----------------------------------------
Microsoft.Kiota.Abstractions
Assembly Version: 1.21.1.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.Kiota.Abstractions.dll
----------------------------------------
Microsoft.Kiota.Http.HttpClientLibrary
Assembly Version: 1.21.1.0
Location: C:\Users\[myname]\OneDrive\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\2.34.0\Dependencies\Microsoft.Kiota.Http.HttpClientLibrary.dll
----------------------------------------
System.Threading.Channels
Assembly Version: 9.0.0.0
Location: C:\Program Files\PowerShell\7\System.Threading.Channels.dll
----------------------------------------
************** JIT Debugging **************
Screenshots
If applicable, add screenshots of the GUI or error messages.

Environment (please complete the following information):
- OS: [e.g. Windows 11, Windows Server 2022] Windows 11
- PowerShell Version: [Run
$PSVersionTable.PSVersion] 7.5.4
- Module Version: [Run
Get-Module PIMActivation | Select-Object Version] latest
- Microsoft Graph Module Version: [Run
Get-Module Microsoft.Graph.Authentication | Select-Object Version] 2.34
Role Configuration:
- Role Types Affected: [Entra ID roles, PIM Groups, Azure Resources] entraID Role
- Authentication Context Required: [Yes/No - if yes, which context?] Not sure
- MFA Required: [Yes/No] No
- Approval Required: [Yes/No] No
Verbose Output (if possible)
# Run with: $VerbosePreference = 'Continue'; Start-PIMActivation -Verbose
# Paste relevant verbose output here
Describe the bug
New to the tool, but whenever i try to run a PIM elevation to a certain PIMable role, I get this unhandled exception error related to MaxDuration not being found. This PIMable role has a max duration of 2 hours, but the powershell tool seems to think it's 8. Even if i manually set it to 2, it still errors out
I've reinstall the module, reinstalled Graph and I get the same behavior.
Error Details
If applicable, paste the full error message:
Screenshots
If applicable, add screenshots of the GUI or error messages.
Environment (please complete the following information):
$PSVersionTable.PSVersion] 7.5.4Get-Module PIMActivation | Select-Object Version] latestGet-Module Microsoft.Graph.Authentication | Select-Object Version] 2.34Role Configuration:
Verbose Output (if possible)