error creating a directory

You have to use → path: C:\temp

is it the Capital C?

just tied and same error

Run the playbook with the administrator access or grant required access to “adm-tkw” to create dir under C:\.

And as per the example on win_file ansible doc its Temp, not temp.

Try c:\temp as path, like this

Can you try the one below?